From 066fd3e41fdae48ef6e21dadb0a6944f92b5a37f Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Mon, 9 Aug 2010 13:08:27 +0000 Subject: [PATCH] hydra: fixed email notification bug, when build is performed for the first time (it always said succeeded in the body of the mail --- src/script/hydra_build.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/hydra_build.pl b/src/script/hydra_build.pl index 5f469430..a48e81d7 100755 --- a/src/script/hydra_build.pl +++ b/src/script/hydra_build.pl @@ -162,7 +162,7 @@ sub sendEmailNotification { my $body = "Hi,\n" . "\n" . "This is to let you know that Hydra build " . $build->id - . " of job " . $jobName . " " . (defined $prevBuild ? "has changed from '".statusDescription($prevBuild->resultInfo->buildstatus)."' to '$status'" : "has succeeded" ) .".\n" + . " of job " . $jobName . " " . (defined $prevBuild ? "has changed from '".statusDescription($prevBuild->resultInfo->buildstatus)."' to '$status'" : "is '$status'." ) .".\n" . "\n" . "Complete build information can be found on this page: " . "$selfURI/build/" . $build->id . "\n"