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