From 1f448673f03011e2eb91488676c4c533226b9808 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 14 Feb 2012 11:48:44 +0100 Subject: [PATCH] hydra-build: Do not send email following an abortion. --- src/script/hydra-build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; }