Package org.jenkinsci.plugins.workflow.cps.steps.ParallelStep

Examples of org.jenkinsci.plugins.workflow.cps.steps.ParallelStep.ParallelLabelAction


    }
    private void shouldHaveParallelStepsInTheOrder(String... expected) {
        List<String> actual = new ArrayList<String>();

        for (Row row : t.getRows()) {
            ParallelLabelAction a = row.getNode().getAction(ParallelLabelAction.class);
            if (a!=null)
                actual.add(a.getBranchName());
        }

        assertEquals(Arrays.asList(expected),actual);
    }
View Full Code Here


        ResultHandler r = new ResultHandler(cps);

        for (Entry<String,Closure> e : parallelStep.closures.entrySet()) {
            BodyExecution body = cps.invokeBodyLater(
                    t.getGroup().export(e.getValue()),
                    Collections.singletonList(new ParallelLabelAction(e.getKey()))
            );
            body.addCallback(r.callbackFor(e.getKey()));
            bodies.add(body);
        }
View Full Code Here

TOP

Related Classes of org.jenkinsci.plugins.workflow.cps.steps.ParallelStep.ParallelLabelAction

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.