hydra-build: Do not send email following an abortion.

This commit is contained in:
Ludovic Courtès 2012-02-14 11:48:44 +01:00
parent a3cc2ce796
commit 1f448673f0

View file

@ -97,8 +97,9 @@ sub sendEmailNotification {
return; return;
} }
# if buildstatus of this build is aborted, do not send email # if buildstatus of this build or the previous one is aborted, do
if ($build->resultInfo->buildstatus == 3) { # not send email
if ($build->resultInfo->buildstatus == 3 || (defined $prevBuild && ($prevBuild->resultInfo->buildstatus == 3))) {
return; return;
} }