jenkinsfile: use native cobertura publishing action

This commit is contained in:
Frédéric Péters 2018-04-25 23:02:40 +02:00
parent d5bc502f9b
commit 3f00922022
1 changed files with 2 additions and 3 deletions

5
Jenkinsfile vendored
View File

@ -7,7 +7,7 @@ pipeline {
parallel {
stage('Python 2') {
steps {
sh 'tox -r -e py2-django111 -- --junitxml=test_results.xml --cov-report xml --cov-report html --cov=bidon/ tests/'
sh 'tox -r -e py2-django111 -- --junitxml=test_results.xml --cov-report xml --cov=bidon/ tests/'
}
}
stage('Python 3') {
@ -31,10 +31,9 @@ pipeline {
post {
always {
junit 'test_results.xml'
archiveArtifacts '**/htmlcov'
cobertura autoUpdateHealth: false, autoUpdateStability: false, coberturaReportFile: '**/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
script {
utils = new Utils()
utils.publish_cobertura_report('**/coverage.xml')
utils.mail_notify(currentBuild, env, 'manukaz@gmail.com')
}
}