Compare commits

...

1 Commits

Author SHA1 Message Date
Emmanuel Cazenave d593503e0e change master branch detection (#24383) 2018-06-08 17:03:55 +02:00
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ 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