From db14b10a052bde6ee8acb4d3b36a4265eb4af3dd Mon Sep 17 00:00:00 2001 From: Artur Harasimiuk Date: Sat, 8 Sep 2018 00:01:58 +0200 Subject: [PATCH] [JENKINS-44193] wfapi/describe execNode empty Adding ExecutorAction to FlowNode Signed-off-by: Artur Harasimiuk --- .../plugins/workflow/support/steps/ExecutorStepExecution.java | 2 ++ 1 file changed, 2 insertions(+) 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()