Skip to content

Commit

Permalink
Update Jenkinsfile-CI
Browse files Browse the repository at this point in the history
  • Loading branch information
saiharshitach authored Oct 2, 2022
1 parent 19f6ff8 commit c8f3403
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jenkins/Jenkinsfile-CI
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ pipeline {
}
}
}
stage('codecoverate') {
stage('codecoverage') {
steps {
echo 'codecoverage..'
sh script: '/opt/maven/bin/mvn cobertura:cobertura -Dcobertura.report.format=xml'
sh script: '/opt/maven/bin/mvn test'
}
post {
success {
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
jacoco changeBuildStatus: true, maximumBranchCoverage: '10', maximumClassCoverage: '10', maximumComplexityCoverage: '10', maximumInstructionCoverage: '10', maximumLineCoverage: '10', maximumMethodCoverage: '10'
}
}
}
Expand Down

0 comments on commit c8f3403

Please sign in to comment.