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 16:21:20 (GMT)
commitafc0626a3461950379d4b5a53857bb238da02cad (patch)
tree0281a0c6506d876248c24e309e4250858f2ab8ab
parentcacb651fa2c8d2eca7c765b4c83340b6e52eaf3f (diff)
downloadjenkins-lib-afc0626a3461950379d4b5a53857bb238da02cad.zip
jenkins-lib-afc0626a3461950379d4b5a53857bb238da02cad.tar.gz
jenkins-lib-afc0626a3461950379d4b5a53857bb238da02cad.tar.bz2
change master branch detection (#24383)
-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