jenkins: publish results earlier (#29442)

This commit is contained in:
Frédéric Péters 2019-01-04 08:54:52 +01:00
parent 3fe0a9f826
commit 849155f495
1 changed files with 14 additions and 7 deletions

21
Jenkinsfile vendored
View File

@ -7,6 +7,20 @@ pipeline {
steps { steps {
sh './jenkins.sh' sh './jenkins.sh'
} }
post {
always {
script {
utils = new Utils()
utils.publish_coverage('coverage-*.xml')
utils.publish_coverage_native(
'index.html', 'htmlcov-coverage-dj18-authentic-pg', 'Coverage a2')
utils.publish_coverage_native(
'index.html', 'htmlcov-coverage-dj18-rbac-pg', , 'Coverage rbac')
utils.publish_pylint('pylint.out')
}
junit 'junit-*.xml'
}
}
} }
stage('Packaging') { stage('Packaging') {
steps { steps {
@ -23,14 +37,7 @@ pipeline {
script { script {
utils = new Utils() utils = new Utils()
utils.mail_notify(currentBuild, env, 'admin+jenkins-authentic@entrouvert.com') utils.mail_notify(currentBuild, env, 'admin+jenkins-authentic@entrouvert.com')
utils.publish_coverage('coverage-*.xml')
utils.publish_coverage_native(
'index.html', 'htmlcov-coverage-dj18-authentic-pg', 'Coverage a2')
utils.publish_coverage_native(
'index.html', 'htmlcov-coverage-dj18-rbac-pg', , 'Coverage rbac')
utils.publish_pylint('pylint.out')
} }
junit 'junit-*.xml'
} }
success { success {
cleanWs() cleanWs()