diff --git a/src/main/java/org/jenkinsci/plugins/workflow/support/steps/ExecutorStepExecution.java b/src/main/java/org/jenkinsci/plugins/workflow/support/steps/ExecutorStepExecution.java index 85d620bf..7a79ffca 100644 --- a/src/main/java/org/jenkinsci/plugins/workflow/support/steps/ExecutorStepExecution.java +++ b/src/main/java/org/jenkinsci/plugins/workflow/support/steps/ExecutorStepExecution.java @@ -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)) { + LOGGER.log(Level.FINE, null, new Throwable(li.task + " was cancelled")); + } task.context.onFailure(new FlowInterruptedException(Result.ABORTED, true, new QueueTaskCancelled())); } }