jenkinsfile: another try at publishing HTML coverage report

This commit is contained in:
Frédéric Péters 2018-04-25 23:06:00 +02:00
parent 3f00922022
commit 07bf600b21
1 changed files with 3 additions and 2 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=bidon/ tests/'
sh 'tox -r -e py2-django111 -- --junitxml=test_results.xml --cov-report xml --cov-report html --cov=bidon/ tests/'
}
}
stage('Python 3') {
@ -31,9 +31,10 @@ pipeline {
post {
always {
junit 'test_results.xml'
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
publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: '**/htmlcov/', reportFiles: 'index.html', reportName: 'Coverage Report', reportTitles: ''])
script {
utils = new Utils()
utils.publish_cobertura_report('**/coverage.xml')
utils.mail_notify(currentBuild, env, 'manukaz@gmail.com')
}
}