From 849155f495ee1fcf9e2fd6ac5a9e735f7dd235c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 4 Jan 2019 08:54:52 +0100 Subject: [PATCH] jenkins: publish results earlier (#29442) --- Jenkinsfile | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2dd5451bb..9ea165647 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,6 +7,20 @@ pipeline { steps { 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') { steps { @@ -23,14 +37,7 @@ pipeline { script { utils = new Utils() 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 { cleanWs()