Improve email notifications status messages
Add "Failed with output", and shorten "Failed with non-zero exit code" to "Failed".
This commit is contained in:
parent
43785dfca9
commit
ac6a152ec5
|
@ -21,9 +21,10 @@ sub showStatus {
|
||||||
my $status = "Failed";
|
my $status = "Failed";
|
||||||
given ($build->buildstatus) {
|
given ($build->buildstatus) {
|
||||||
when (0) { $status = "Success"; }
|
when (0) { $status = "Success"; }
|
||||||
when (1) { $status = "Failed with non-zero exit code"; }
|
when (1) { $status = "Failed"; }
|
||||||
when (2) { $status = "Dependency failed"; }
|
when (2) { $status = "Dependency failed"; }
|
||||||
when (4) { $status = "Cancelled"; }
|
when (4) { $status = "Cancelled"; }
|
||||||
|
when (6) { $status = "Failed with output"; }
|
||||||
}
|
}
|
||||||
|
|
||||||
return $status;
|
return $status;
|
||||||
|
|
Loading…
Reference in a new issue