Package org.jenkinsci.plugins.workflow.support.actions

Examples of org.jenkinsci.plugins.workflow.support.actions.WorkspaceActionImpl


                            throw new IllegalStateException(node + " is offline");
                        }
                        WorkspaceList.Lease lease = computer.getWorkspaceList().allocate(p);
                        FilePath workspace = lease.path;
                        FlowNode flowNode = context.get(FlowNode.class);
                        flowNode.addAction(new WorkspaceActionImpl(workspace, flowNode));
                        listener.getLogger().println("Running on " + computer.getDisplayName() + " in " + workspace); // TODO hyperlink
                        context.invokeBodyLater(exec, computer, env, workspace).addCallback(new Callback(cookie, lease));
                        LOGGER.log(Level.FINE, "started {0}", cookie);
                    } else {
                        // just rescheduled after a restart; wait for task to complete
View Full Code Here


        if (p == null) {
            throw new IllegalStateException(n + " is offline");
        }
        WorkspaceList.Lease lease = c.getWorkspaceList().allocate(p);
        FilePath workspace = lease.path;
        flowNode.addAction(new WorkspaceActionImpl(workspace, flowNode));
        listener.getLogger().println("Running in " + workspace);
        body = getContext().invokeBodyLater(workspace);
        body.addCallback(new Callback(getContext(), lease));
        return false;
    }
View Full Code Here

TOP

Related Classes of org.jenkinsci.plugins.workflow.support.actions.WorkspaceActionImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.