Skip to content

Commit cb389c3

Browse files
committed
MB-68460 Merge branch 'trinity' into 'morpheus'
* trinity: MB-68460 Use official coverage plugin Change-Id: I011e414cc83dca556c63d1ae39fb120146a788c9
2 parents 0135e72 + d3d5c07 commit cb389c3

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)