From eabf9c1daae8ad6ff08ab42c84d0cf347f7ab27c Mon Sep 17 00:00:00 2001 From: Emmanuel Cazenave Date: Wed, 25 Apr 2018 09:56:37 +0200 Subject: [PATCH] use jenkins-lib --- Jenkinsfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 979901c..3b879e3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,3 +1,5 @@ +@Library('eo-jenkins-lib') import eo.Utils + pipeline { agent any stages{ @@ -19,8 +21,10 @@ pipeline { post { always { junit 'test_results.xml' - step([$class: 'CoberturaPublisher', autoUpdateHealth: false, autoUpdateStability: false, coberturaReportFile: '**/coverage.xml', failUnhealthy: false, failUnstable: false, maxNumberOfBuilds: 0, onlyStable: false, sourceEncoding: 'ASCII', zoomCoverageChart: false]) script { + utils = Utils() + utils.publish_cobertura_report('**/coverage.xml') + // Hack to have the 'jenkins build back to normal' mail sent if (currentBuild.result == null) { currentBuild.result = 'SUCCESS'