do not send email for builds with status 'aborted'
This commit is contained in:
parent
03d12ca68e
commit
2849279f80
|
@ -91,10 +91,16 @@ sub sendEmailNotification {
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
# if there is a previous build with same buildstatus, do not send email
|
||||||
if (defined $prevBuild && ($build->resultInfo->buildstatus == $prevBuild->resultInfo->buildstatus)) {
|
if (defined $prevBuild && ($build->resultInfo->buildstatus == $prevBuild->resultInfo->buildstatus)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# if buildstatus of this build is aborted, do not send email
|
||||||
|
if ($build->resultInfo->buildstatus == 3) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
# Send mail.
|
# Send mail.
|
||||||
# !!! should use the Template Toolkit here.
|
# !!! should use the Template Toolkit here.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue