use mail_notify
This commit is contained in:
parent
6ecc832fbe
commit
f5d0b3ef66
|
@ -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')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue