elastic / apm-integration-testing

APM Integration Testing
Apache License 2.0
54 stars 68 forks source link

opbeans-dotnet: use the way to know the agent version #1573

Closed v1v closed 1 year ago

v1v commented 1 year ago

What does this PR do?

Support new folder structure in the apm-agent-dotnet

Why is it important?

Otherwise it fails with

#   #17 101.6 ++ grep PackageVersion /src/dotnet-agent/src/Elastic.Apm.NetCoreAll/Elastic.Apm.NetCoreAll.csproj
#   #17 101.6 grep: /src/dotnet-agent/src/Elastic.Apm.NetCoreAll/Elastic.Apm.NetCoreAll.csproj: No such file or directory
#   #17 101.6 + DOTNET_AGENT_VERSION=
#   #17 101.7 + '[' -z '' ']'
#   #17 101.7 + echo 'ERROR: DOTNET_AGENT_VERSION could not be calculated.'
#   #17 101.7 ERROR: DOTNET_AGENT_VERSION could not be calculated.
#   #17 101.7 + exit 1

See https://github.com/elastic/apm-pipeline-library/actions/runs/5792609381/job/15709594341#step:9:475

Related issues

see https://github.com/elastic/apm-agent-dotnet/pull/2063