forked from lix-project/hydra
Fix error codes for GiteaStatus plugin
* `failure` if a build error occurred, on e.g. an aborted build send `error`.
This commit is contained in:
parent
fef142f13a
commit
56997d8e8b
|
@ -21,8 +21,10 @@ sub toGiteaState {
|
||||||
return "pending";
|
return "pending";
|
||||||
} elsif ($buildStatus == 0) {
|
} elsif ($buildStatus == 0) {
|
||||||
return "success";
|
return "success";
|
||||||
} else {
|
} elsif ($buildStatus == 3 || $buildStatus == 4 || $buildStatus == 8 || $buildStatus == 10 || $buildStatus == 11) {
|
||||||
return "error";
|
return "error";
|
||||||
|
} else {
|
||||||
|
return "failure";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue