Skip to content

Commit f4519bd

Browse files
committed
MB-68460 Use official coverage plugin
Change-Id: I6a6a636c273f9663931e4d73b9b4d3211c9dcc81 Reviewed-on: https://review.couchbase.org/c/couchbase-cli/+/234830 Tested-by: Matt Hall <matt.hall@couchbase.com> Well-Formed: Restriction Checker Reviewed-by: Lubo Marinski <lubo.marinski@couchbase.com>
1 parent c85b731 commit f4519bd

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
@@ -185,8 +185,13 @@ pipeline {
185185
// Post the test results
186186
junit allowEmptyResults: true, testResults: "reports/test-*.xml"
187187

188-
// Post the test coverage
189-
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
188+
// Post the test coverage using the official Jenkins Coverage plugin
189+
recordCoverage(
190+
tools: [[parser: 'COBERTURA', pattern: 'reports/coverage-cli.xml']],
191+
qualityGates: [[threshold: 50.0, metric: 'LINE', baseline: 'PROJECT']],
192+
sourceDirectories: [[path: "couchbase-cli/"]],
193+
sourceCodeRetention: "LAST_BUILD",
194+
)
190195
}
191196

192197
success {

0 commit comments

Comments
 (0)