diff --git a/src/lib/Hydra/Plugin/GiteaStatus.pm b/src/lib/Hydra/Plugin/GiteaStatus.pm index aa1994cf..f5d36685 100644 --- a/src/lib/Hydra/Plugin/GiteaStatus.pm +++ b/src/lib/Hydra/Plugin/GiteaStatus.pm @@ -21,8 +21,10 @@ sub toGiteaState { return "pending"; } elsif ($buildStatus == 0) { return "success"; - } else { + } elsif ($buildStatus == 3 || $buildStatus == 4 || $buildStatus == 8 || $buildStatus == 10 || $buildStatus == 11) { return "error"; + } else { + return "failure"; } }