From 813ab5f06549458e237334a48a2e223106e601c7 Mon Sep 17 00:00:00 2001 From: Emmanuel Cazenave Date: Mon, 4 Jan 2021 23:48:21 +0100 Subject: [PATCH] use origin/main instead of origin/master --- src/eo/Utils.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eo/Utils.groovy b/src/eo/Utils.groovy index e647b51..34a4b21 100644 --- a/src/eo/Utils.groovy +++ b/src/eo/Utils.groovy @@ -2,14 +2,14 @@ package eo; def mail_notify(currentBuild, env, email) { - /* Send mail to 'email' if branch is master + /* Send mail to 'email' if branch is main else send mail to the author of the last commit */ if (currentBuild.result == null) { // Hack to have the 'jenkins build back to normal' mail sent currentBuild.result = 'SUCCESS' } - if (env.GIT_BRANCH == 'origin/master') { + if (env.GIT_BRANCH == 'origin/main') { step([ $class: 'Mailer', notifyEveryUnstableBuild: true, recipients: email, sendToIndividuals: true