Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Log a note when catchError sets build result
  • Loading branch information
jglick committed Apr 24, 2024
commit cfa55a82b3f585dfa45bceaf42ad9ccc5f820b52
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ public Object readResolve() {
Functions.printStackTrace(t, listener.getLogger());
}
if (buildResult.isWorseThan(Result.SUCCESS)) {
listener.getLogger().println("Setting overall build result to " + buildResult);
context.get(Run.class).setResult(buildResult);
}
if (stepResult.isWorseThan(Result.SUCCESS)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ public class CatchErrorStepTest {
"}", true));
WorkflowRun b = p.scheduleBuild2(0).waitForStart();
assertCatchError(r, b, Result.UNSTABLE, null, true);
r.assertLogContains("Setting overall build result to UNSTABLE", b);
}

@Test public void invalidBuildResult() throws Exception {
Expand Down