use jenkins-lib

This commit is contained in:
Emmanuel Cazenave 2018-04-25 09:56:37 +02:00
parent c4f98f8a61
commit eabf9c1daa
1 changed files with 5 additions and 1 deletions

6
Jenkinsfile vendored
View File

@ -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'