Skip to content

Commit 93bfb7c

Browse files
authored
Update Jenkinsfile
Add Public Cobertura Report
1 parent 40163fb commit 93bfb7c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Jenkinsfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ pipeline{
4747
echo 'Metric checking...'
4848
sh 'mvn cobertura:cobertura -Dcoberture.report.format=xml'
4949
}
50+
post {
51+
success {
52+
cobertura autoUpdateHealth: false, autoUpdateStability: false, coberturaReportFile: 'target/site/cobertura/coverage.xml', conditionalCoverageTargets: '70, 0, 0', failUnhealthy: false, failUnstable: false, lineCoverageTargets: '80, 0, 0', maxNumberOfBuilds: 0, methodCoverageTargets: '80, 0, 0', onlyStable: false, sourceEncoding: 'ASCII', zoomCoverageChart: false
53+
}
54+
}
5055
}
5156
stage('Package')
5257
{

0 commit comments

Comments
 (0)