Skip to content

Commit

Permalink
Handle NOT_BUILT results more clearly (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiasbpersson authored Jul 3, 2024
1 parent 6751982 commit 4618c82
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/jenkinsci/plugin/gitea/GiteaNotifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ private static void sendNotifications(Run<?, ?> build, TaskListener listener)
} else if (Result.FAILURE.equals(result)) {
status.setDescription("There was a failure building this commit");
status.setState(GiteaCommitState.FAILURE);
} else if (Result.NOT_BUILT.equals(result)) {
status.setDescription("This commit was not built");
status.setState(GiteaCommitState.WARNING);

Check warning on line 111 in src/main/java/org/jenkinsci/plugin/gitea/GiteaNotifier.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered lines

Lines 109-111 are not covered by tests
} else if (result != null) { // ABORTED etc.
status.setDescription("Something is wrong with the build of this commit");
status.setState(GiteaCommitState.ERROR);
Expand Down

0 comments on commit 4618c82

Please sign in to comment.