Skip to content

Commit

Permalink
Fine logging with stack trace when queue item cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Jan 23, 2024
1 parent ef4a810 commit 68be217
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@ public void stop(@NonNull Throwable cause) throws Exception {
if (li.task instanceof PlaceholderTask) {
PlaceholderTask task = (PlaceholderTask) li.task;
if (!task.stopping) {
if (LOGGER.isLoggable(Level.FINE)) {

Check warning on line 255 in src/main/java/org/jenkinsci/plugins/workflow/support/steps/ExecutorStepExecution.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Partially covered line

Line 255 is only partially covered, one branch is missing
LOGGER.log(Level.FINE, null, new Throwable(li.task + " was cancelled"));

Check warning on line 256 in src/main/java/org/jenkinsci/plugins/workflow/support/steps/ExecutorStepExecution.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered line

Line 256 is not covered by tests
}
task.context.onFailure(new FlowInterruptedException(Result.ABORTED, true, new QueueTaskCancelled()));
}
}
Expand Down

0 comments on commit 68be217

Please sign in to comment.