diff --git a/src/script/hydra_build.pl.in b/src/script/hydra_build.pl.in index 08280a6a..04fcbe22 100755 --- a/src/script/hydra_build.pl.in +++ b/src/script/hydra_build.pl.in @@ -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.