change master branch detection (#24383)
This commit is contained in:
parent
cacb651fa2
commit
afc0626a34
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue