do not send email for builds with status 'aborted'

This commit is contained in:
Rob Vermaas 2011-03-15 12:12:56 +00:00
parent 03d12ca68e
commit 2849279f80

View file

@ -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)) {
return;
}
# if buildstatus of this build is aborted, do not send email
if ($build->resultInfo->buildstatus == 3) {
return;
}
# Send mail.
# !!! should use the Template Toolkit here.