Skip to content

Commit

Permalink
[JENKINS-44193] wfapi/describe execNode empty
Browse files Browse the repository at this point in the history
Adding ExecutorAction to FlowNode

Signed-off-by: Artur Harasimiuk <[email protected]>
  • Loading branch information
ArturHarasimiuk committed Sep 11, 2018
1 parent cd4ebb4 commit db14b10
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit db14b10

Please sign in to comment.