Skip to content

Commit

Permalink
Merge pull request #353 from jglick/QueueTaskCancelled
Browse files Browse the repository at this point in the history
Fine logging with stack trace when queue item cancelled
  • Loading branch information
jglick authored Jan 24, 2024
2 parents ef4a810 + 68be217 commit 5337e0c
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 5337e0c

Please sign in to comment.