Skip to content

Commit 4618c82

Browse files
Handle NOT_BUILT results more clearly (#63)
1 parent 6751982 commit 4618c82

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/org/jenkinsci/plugin/gitea/GiteaNotifier.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ private static void sendNotifications(Run<?, ?> build, TaskListener listener)
106106
} else if (Result.FAILURE.equals(result)) {
107107
status.setDescription("There was a failure building this commit");
108108
status.setState(GiteaCommitState.FAILURE);
109+
} else if (Result.NOT_BUILT.equals(result)) {
110+
status.setDescription("This commit was not built");
111+
status.setState(GiteaCommitState.WARNING);
109112
} else if (result != null) { // ABORTED etc.
110113
status.setDescription("Something is wrong with the build of this commit");
111114
status.setState(GiteaCommitState.ERROR);

0 commit comments

Comments
 (0)