@@ -25,7 +25,7 @@ stages:
2525 } 3>&1;
2626 } | { read xs; exit $xs; }
2727 } 4>&1
28-
28+
2929 # combine coverage from multiple modules
3030 (echo "mode: atomic"; tail -q -n +2 coverage-*.out) > coverage.cover
3131 mv coverage.cover linux-coverage.out
@@ -95,20 +95,23 @@ stages:
9595 name: "Coverage"
9696 displayName: "Generate Coverage Report"
9797 condition: always()
98- - task : PublishCodeCoverageResults@1
99- displayName : " Publish Code Coverage Report"
100- condition : always()
101- inputs :
102- codeCoverageTool : ' Cobertura'
103- summaryFileLocation : coverage/linux-coverage.xml
104- - task : BuildQualityChecks@8
105- displayName : " Check Code Coverage Regression"
106- condition : always()
107- inputs :
108- checkCoverage : true
109- coverageFailOption : " build"
110- coverageType : " lines"
111- fallbackOnPRTargetBranch : false
112- baseBranchRef : " master"
113- allowCoverageVariance : true
114- coverageVariance : 0.25
98+ # Looking for PRs from merge queue
99+ # Expected output refs/heads/gh-readonly-queue/master/pr-3780-f0a96a1
100+ - ${{ if not(contains(variables['Build.SourceBranch'], 'master/pr')) }} :
101+ - task : PublishCodeCoverageResults@1
102+ displayName : " Publish Code Coverage Report"
103+ condition : always()
104+ inputs :
105+ codeCoverageTool : ' Cobertura'
106+ summaryFileLocation : coverage/linux-coverage.xml
107+ - task : BuildQualityChecks@8
108+ displayName : " Check Code Coverage Regression"
109+ condition : always()
110+ inputs :
111+ checkCoverage : true
112+ coverageFailOption : " build"
113+ coverageType : " lines"
114+ fallbackOnPRTargetBranch : false
115+ baseBranchRef : " master"
116+ allowCoverageVariance : true
117+ coverageVariance : 0.25
0 commit comments