change master branch detection (#24383)

This commit is contained in:
Emmanuel Cazenave 2018-06-08 15:40:23 +02:00
parent cacb651fa2
commit afc0626a34
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