Compare commits

...

6 Commits

Author SHA1 Message Date
Emmanuel Cazenave cf2bab0751 wip 2018-06-08 18:26:02 +02:00
Emmanuel Cazenave e1e6a0a468 wip 2018-06-08 18:14:26 +02:00
Emmanuel Cazenave 91b0e54437 wip 2018-06-08 18:06:09 +02:00
Emmanuel Cazenave 2e3dfc2dd5 wip 2018-06-08 18:01:34 +02:00
Emmanuel Cazenave 57a5ffde5d wip 2018-06-08 17:49:58 +02:00
Emmanuel Cazenave d593503e0e change master branch detection (#24383) 2018-06-08 17:03:55 +02:00
1 changed files with 3 additions and 5 deletions

View File

@ -9,18 +9,16 @@ def mail_notify(currentBuild, env, email) {
// Hack to have the 'jenkins build back to normal' mail sent
currentBuild.result = 'SUCCESS'
}
if (env.BRANCH_NAME == 'master') {
if (env.GIT_BRANCH == 'origin/master') {
step([
$class: 'Mailer', notifyEveryUnstableBuild: true,
recipients: email, sendToIndividuals: true
])
} else {
author = sh(returnStdout: true, script: "git show -s --format='%ae' HEAD").trim()
step([
$class: 'Mailer', notifyEveryUnstableBuild: true,
recipients: emailextrecipients([
[$class: 'CulpritsRecipientProvider'],
[$class: 'RequesterRecipientProvider']
])
recipients: author, sendToIndividuals: true
])
}
}