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 d17e50528..ffd04eb1c 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 @@ -70,6 +70,7 @@ import org.jenkinsci.plugins.workflow.steps.BodyExecutionCallback; import org.jenkinsci.plugins.workflow.steps.StepContext; import org.jenkinsci.plugins.workflow.steps.durable_task.Messages; +import org.jenkinsci.plugins.workflow.actions.ExecutorAction; import org.jenkinsci.plugins.workflow.support.actions.WorkspaceActionImpl; import org.jenkinsci.plugins.workflow.support.concurrent.Timeout; import org.kohsuke.accmod.Restricted; @@ -719,6 +720,7 @@ private final class PlaceholderExecutable implements ContinuableExecutable { FlowNode flowNode = context.get(FlowNode.class); if (flowNode != null) { flowNode.addAction(new WorkspaceActionImpl(workspace, flowNode)); + flowNode.addAction(new ExecutorAction(exec)); } listener.getLogger().println("Running on " + ModelHyperlinkNote.encodeTo(node) + " in " + workspace); context.newBodyInvoker()