use origin/main instead of origin/master
This commit is contained in:
parent
bdf18980aa
commit
813ab5f065
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue