From 2849279f80a9d4c2028c9cc715ebfe743573a34a Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Tue, 15 Mar 2011 12:12:56 +0000 Subject: [PATCH] do not send email for builds with status 'aborted' --- src/script/hydra_build.pl.in | 6 ++++++ 1 file changed, 6 insertions(+) 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.