use mail_notify

This commit is contained in:
Emmanuel Cazenave 2018-04-25 10:24:11 +02:00
parent 6ecc832fbe
commit f5d0b3ef66
1 changed files with 1 additions and 14 deletions

15
Jenkinsfile vendored
View File

@ -24,20 +24,7 @@ pipeline {
script {
utils = new 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'
}
if (env.BRANCH_NAME == 'master') {
step([$class: 'Mailer', notifyEveryUnstableBuild: true,
recipients: "manukaz@gmail.com", sendToIndividuals: true])
} else {
step([$class: 'Mailer',
notifyEveryUnstableBuild: true,
recipients: emailextrecipients([[$class: 'CulpritsRecipientProvider'],
[$class: 'RequesterRecipientProvider']])])
}
utils.mail_notify(currentBuild, env, 'manukaz@gmail.com')
}
}
}