summaryrefslogtreecommitdiff
path: root/.azure-pipelines
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2022-02-03 11:12:45 -0800
committerMatt Clay <matt@mystile.com>2022-02-03 11:53:18 -0800
commita926b1dbab536655ce1807aadffa26750170b86f (patch)
treef254684d2cb564879d66b45cf3a866b3b7109699 /.azure-pipelines
parente1cf6af06d2aa36bc131505cd42270f01c94f057 (diff)
downloadansible-a926b1dbab536655ce1807aadffa26750170b86f.zip
Stop publishing code coverage to the AZP UI.
Azure Pipelines only supports publishing a single code coverage file. This limits us to reporting on either Python or PowerShell. It also prevents us from reporting coverage per test command without further aggregation. Most of our users are only aware of the reports published to codecov.io.
Diffstat (limited to '.azure-pipelines')
-rw-r--r--.azure-pipelines/azure-pipelines.yml2
-rw-r--r--.azure-pipelines/templates/coverage.yml13
2 files changed, 0 insertions, 15 deletions
diff --git a/.azure-pipelines/azure-pipelines.yml b/.azure-pipelines/azure-pipelines.yml
index 704ced5e4d..e1c12c93fc 100644
--- a/.azure-pipelines/azure-pipelines.yml
+++ b/.azure-pipelines/azure-pipelines.yml
@@ -26,8 +26,6 @@ variables:
value: ansible
- name: coverageBranches
value: devel
- - name: pipelinesCoverage
- value: coverage
- name: entryPoint
value: test/utils/shippable/shippable.sh
- name: fetchDepth
diff --git a/.azure-pipelines/templates/coverage.yml b/.azure-pipelines/templates/coverage.yml
index 6b78dbe359..469ed5e65d 100644
--- a/.azure-pipelines/templates/coverage.yml
+++ b/.azure-pipelines/templates/coverage.yml
@@ -23,19 +23,6 @@ jobs:
- bash: .azure-pipelines/scripts/report-coverage.sh
displayName: Generate Coverage Report
condition: gt(variables.coverageFileCount, 0)
- - task: PublishCodeCoverageResults@1
- inputs:
- codeCoverageTool: Cobertura
- # Azure Pipelines only accepts a single coverage data file.
- # That means only Python or PowerShell coverage can be uploaded, but not both.
- # 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.py "$(outputPath)"
displayName: Publish to codecov.io
condition: gt(variables.coverageFileCount, 0)