Skip to content

Commit

Permalink
Merge pull request #12 from jenkinsci/change-unstable-as-failure
Browse files Browse the repository at this point in the history
Map unstable build to check failure
  • Loading branch information
XiongKezhi authored Aug 12, 2020
2 parents 4901341 + bf645fe commit 18d0b21
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,7 @@ private ChecksConclusion extractConclusion(final Run<?, ?> run) {
if (result.isBetterOrEqualTo(Result.SUCCESS)) {
return ChecksConclusion.SUCCESS;
}
else if (result.isBetterOrEqualTo(Result.UNSTABLE)) {
return ChecksConclusion.NEUTRAL;
}
else if (result.isBetterOrEqualTo(Result.FAILURE)) {
else if (result.isBetterOrEqualTo(Result.UNSTABLE) || result.isBetterOrEqualTo(Result.FAILURE)) {
return ChecksConclusion.FAILURE;
}
else if (result.isBetterOrEqualTo(Result.NOT_BUILT)) {
Expand Down

0 comments on commit 18d0b21

Please sign in to comment.