diff --git a/src/script/hydra-build b/src/script/hydra-build index d7f3de41..d85b2779 100755 --- a/src/script/hydra-build +++ b/src/script/hydra-build @@ -97,8 +97,9 @@ sub sendEmailNotification { return; } - # if buildstatus of this build is aborted, do not send email - if ($build->resultInfo->buildstatus == 3) { + # if buildstatus of this build or the previous one is aborted, do + # not send email + if ($build->resultInfo->buildstatus == 3 || (defined $prevBuild && ($prevBuild->resultInfo->buildstatus == 3))) { return; }