5959# ReportGenerator or other Marketplace extension is required.
6060#
6161# The DB 'pipeline' IDs below are the numeric definition IDs from Azure DevOps
62- # (pipeline URL ...?definitionId=NN). The db-name labels are cosmetic; only the
63- # numeric IDs matter for the download, and the merge is order-independent.
62+ # (pipeline URL ...?definitionId=NN). Each DB pipeline publishes its RAW cobertura
63+ # as a named 'coverage-<db>' pipeline artifact (added in its own YAML); this job
64+ # downloads those by name and unions them. NOTE: each DB pipeline must run once
65+ # after that change merges before its 'coverage-<db>' artifact exists - until then
66+ # its download soft-fails (continueOnError) and it's simply omitted from the union.
6467- job : total_code_coverage
6568 displayName : ' Total Code Coverage (rolling dashboard)'
6669 dependsOn : build
8992 project : ' $(System.TeamProject)'
9093 pipeline : ' 2'
9194 runVersion : ' latest'
92- patterns : ' **/*.cobertura.xml '
95+ artifact : ' coverage-mssql '
9396 path : ' $(Pipeline.Workspace)/db/mssql'
9497 - task : DownloadPipelineArtifact@2
9598 displayName : ' Download PostgreSql coverage (latest)'
99102 project : ' $(System.TeamProject)'
100103 pipeline : ' 4'
101104 runVersion : ' latest'
102- patterns : ' **/*.cobertura.xml '
105+ artifact : ' coverage-pg '
103106 path : ' $(Pipeline.Workspace)/db/pg'
104107 - task : DownloadPipelineArtifact@2
105108 displayName : ' Download MySql coverage (latest)'
@@ -109,7 +112,7 @@ jobs:
109112 project : ' $(System.TeamProject)'
110113 pipeline : ' 3'
111114 runVersion : ' latest'
112- patterns : ' **/*.cobertura.xml '
115+ artifact : ' coverage-mysql '
113116 path : ' $(Pipeline.Workspace)/db/mysql'
114117 - task : DownloadPipelineArtifact@2
115118 displayName : ' Download DwSql coverage (latest)'
@@ -119,7 +122,7 @@ jobs:
119122 project : ' $(System.TeamProject)'
120123 pipeline : ' 1'
121124 runVersion : ' latest'
122- patterns : ' **/*.cobertura.xml '
125+ artifact : ' coverage-dwsql '
123126 path : ' $(Pipeline.Workspace)/db/dwsql'
124127 - task : DownloadPipelineArtifact@2
125128 displayName : ' Download CosmosDb coverage (latest)'
@@ -129,7 +132,7 @@ jobs:
129132 project : ' $(System.TeamProject)'
130133 pipeline : ' 6'
131134 runVersion : ' latest'
132- patterns : ' **/*.cobertura.xml '
135+ artifact : ' coverage-cosmos '
133136 path : ' $(Pipeline.Workspace)/db/cosmos'
134137
135138 # Union-merge every downloaded cobertura and emit ONE combined Cobertura.xml
0 commit comments