use origin/main instead of origin/master

This commit is contained in:
Emmanuel Cazenave 2021-01-04 23:48:21 +01:00
parent bdf18980aa
commit 813ab5f065
1 changed files with 2 additions and 2 deletions

View File

@ -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