diff options
author | Matt Clay <mclay@redhat.com> | 2021-05-19 14:54:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-19 14:54:03 -0700 |
commit | 83010f666d583b1316281c6845e1bb796e3010e4 (patch) | |
tree | c8eaf10533c820cc193c4051e5289a8d8db021b6 /.azure-pipelines | |
parent | 724a0c867e9c44199f2b50d888f1291aa4d7c11c (diff) | |
download | ansible-83010f666d583b1316281c6845e1bb796e3010e4.zip |
Fix coverage paths reported in AZP. (#74759)
Diffstat (limited to '.azure-pipelines')
-rw-r--r-- | .azure-pipelines/templates/coverage.yml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.azure-pipelines/templates/coverage.yml b/.azure-pipelines/templates/coverage.yml index 1864e44410..4d381c6d63 100644 --- a/.azure-pipelines/templates/coverage.yml +++ b/.azure-pipelines/templates/coverage.yml @@ -31,6 +31,9 @@ jobs: # Set the "pipelinesCoverage" variable to determine which type is uploaded. # Use "coverage" for Python and "coverage-powershell" for PowerShell. summaryFileLocation: "$(outputPath)/reports/$(pipelinesCoverage).xml" + # Override the root (sources) path specified in the coverage XML files. + # This allows coverage to be reported in Azure Pipelines even if the report was generated in a container. + pathToSources: "$(Agent.BuildDirectory)/$(checkoutPath)" displayName: Publish to Azure Pipelines condition: gt(variables.coverageFileCount, 0) - bash: .azure-pipelines/scripts/publish-codecov.sh "$(outputPath)" |