summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Cazenave <ecazenave@entrouvert.com>2018-06-08 13:40:23 (GMT)
committerEmmanuel Cazenave <ecazenave@entrouvert.com>2018-06-08 15:03:55 (GMT)
commitd593503e0e42b14c1da32883e828040f81307903 (patch)
tree0281a0c6506d876248c24e309e4250858f2ab8ab
parentcacb651fa2c8d2eca7c765b4c83340b6e52eaf3f (diff)
downloadjenkins-lib-wip/mail-notify.zip
jenkins-lib-wip/mail-notify.tar.gz
jenkins-lib-wip/mail-notify.tar.bz2
change master branch detection (#24383)wip/mail-notify
-rw-r--r--src/eo/Utils.groovy2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eo/Utils.groovy b/src/eo/Utils.groovy
index 58a2429..4fb06cd 100644
--- a/src/eo/Utils.groovy
+++ b/src/eo/Utils.groovy
@@ -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