summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2020-11-19 18:28:22 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2020-11-19 18:28:22 (GMT)
commit8dcae040e680860401a3a7eff3efac533a18ace5 (patch)
tree8567b34d3d388ea1d8ecd87bbaae7005f0e50ded
parent52b90ec5c960f41299d2ea283114fb9326af431c (diff)
downloadeopayment-wip/48694-jenkins-coverage-move.zip
eopayment-wip/48694-jenkins-coverage-move.tar.gz
eopayment-wip/48694-jenkins-coverage-move.tar.bz2
jenkins: publish coverage data after tests step (#48694)wip/48694-jenkins-coverage-move
-rw-r--r--Jenkinsfile13
1 files changed, 10 insertions, 3 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index cd0755c..5072511 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -7,6 +7,16 @@ pipeline {
steps {
sh 'tox -rv'
}
+ post {
+ always {
+ script {
+ utils = new Utils()
+ utils.publish_coverage('coverage.xml')
+ utils.publish_coverage_native('index.html')
+ }
+ mergeJunitResults()
+ }
+ }
}
stage('Packaging') {
steps {
@@ -25,10 +35,7 @@ pipeline {
script {
utils = new Utils()
utils.mail_notify(currentBuild, env, 'ci+jenkins-eopayment@entrouvert.org')
- utils.publish_coverage('coverage.xml')
- utils.publish_coverage_native('index.html')
}
- mergeJunitResults()
}
success {
cleanWs()