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:
Maximilian Bosch 2021-03-30 14:13:46 +02:00
parent fef142f13a
commit 56997d8e8b
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E

View file

@ -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";
} }
} }