Improve email notifications status messages

Add "Failed with output", and shorten "Failed with non-zero exit code"
to "Failed".
This commit is contained in:
Eelco Dolstra 2013-05-15 11:31:37 +02:00
parent 43785dfca9
commit ac6a152ec5

View file

@ -21,9 +21,10 @@ sub showStatus {
my $status = "Failed";
given ($build->buildstatus) {
when (0) { $status = "Success"; }
when (1) { $status = "Failed with non-zero exit code"; }
when (1) { $status = "Failed"; }
when (2) { $status = "Dependency failed"; }
when (4) { $status = "Cancelled"; }
when (6) { $status = "Failed with output"; }
}
return $status;