Skip to content

Commit

Permalink
[JENKINS-40161] Handle exceptions from StepExecution.onResume (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick authored Dec 16, 2021
1 parent 3de5e2e commit 6a04bac
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,11 @@ public void onSuccess(List<StepExecution> result) {
}
LOGGER.log(Level.FINE, "Will resume {0}", result);
for (StepExecution se : result) {
se.onResume();
try {
se.onResume();
} catch (Throwable x) {
se.getContext().onFailure(x);
}
}
}

Expand Down

0 comments on commit 6a04bac

Please sign in to comment.