Skip to content

Commit d3d5c07

Browse files
committed
MB-68460 Merge branch 'neo' into 'trinity'
* neo: MB-68460 Use official coverage plugin Change-Id: I7b44caed26ba92cc7c199fdb477df652441d7777
2 parents 57e662c + f4519bd commit d3d5c07

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

Jenkinsfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,13 @@ pipeline {
184184
// Post the test results
185185
junit allowEmptyResults: true, testResults: "reports/test-*.xml"
186186

187-
// Post the test coverage
188-
cobertura autoUpdateStability: false, autoUpdateHealth: false, onlyStable: false, coberturaReportFile: "reports/coverage-*.xml", conditionalCoverageTargets: "70, 10, 30", failNoReports: false, failUnhealthy: true, failUnstable: true, lineCoverageTargets: "70, 10, 30", methodCoverageTargets: "70, 10, 30", maxNumberOfBuilds: 0, sourceEncoding: "ASCII", zoomCoverageChart: false
187+
// Post the test coverage using the official Jenkins Coverage plugin
188+
recordCoverage(
189+
tools: [[parser: 'COBERTURA', pattern: 'reports/coverage-cli.xml']],
190+
qualityGates: [[threshold: 50.0, metric: 'LINE', baseline: 'PROJECT']],
191+
sourceDirectories: [[path: "couchbase-cli/"]],
192+
sourceCodeRetention: "LAST_BUILD",
193+
)
189194
}
190195

191196
success {

0 commit comments

Comments
 (0)