Examples of StepStartNode


Examples of org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode

     *      The thread whose context the new thread will inherit.
     */
    @CpsVmThreadOnly
    /*package*/ void start(CpsThread currentThread, FlowHead head) {

        StepStartNode sn = addBodyStartFlowNode(head);

        try {
            // TODO: handle arguments to closure
            Object x = body.getBody(currentThread).call();

View Full Code Here

Examples of org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode

     * Inserts the flow node that indicates the beginning of the body invocation.
     *
     * @see Adapter#addBodyEndFlowNode()
     */
    private StepStartNode addBodyStartFlowNode(FlowHead head) {
        StepStartNode start = new StepStartNode(head.getExecution(),
                owner.getStepDescriptor(), head.get());
        start.addAction(new BodyInvocationAction());
        for (Action a : startNodeActions) {
            if (a!=null)
                start.addAction(a);
        }
        head.setNewHead(start);
        return start;
    }
View Full Code Here

Examples of org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode

        if (ps.body == null && !hack) {
            an = new StepAtomNode(exec, d, thread.head.get());
            // TODO: use CPS call stack to obtain the current call site source location. See JENKINS-23013
            thread.head.setNewHead(an);
        } else {
            an = new StepStartNode(exec, d, thread.head.get());
            thread.head.setNewHead(an);
        }

        final CpsStepContext context = new CpsStepContext(d,thread,handle,an,ps.body);
        Step s;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.