Package org.jenkinsci.plugins.workflow.flow

Examples of org.jenkinsci.plugins.workflow.flow.FlowExecution


        AccessControlled accessControlled() {
            try {
                if (!context.isReady()) {
                    return null;
                }
                FlowExecution exec = context.get(FlowExecution.class);
                if (exec == null) {
                    return null;
                }
                Queue.Executable executable = exec.getOwner().getExecutable();
                if (executable instanceof AccessControlled) {
                    return (AccessControlled) executable;
                } else {
                    return null;
                }
View Full Code Here


        return "flowGraph";
    }

    @Exported
    public Collection<? extends FlowNode> getNodes() {
        FlowExecution exec = run.getExecution();
        if (exec == null) {
            return Collections.emptySet();
        }
        List<FlowNode> nodes = new ArrayList<FlowNode>();
        FlowGraphWalker walker = new FlowGraphWalker(exec);
View Full Code Here

                        LOGGER.log(Level.WARNING, "failed to wait for " + r + " to be loaded", x);
                        break;
                    }
                }
            }
            FlowExecution exec = r.execution;
            if (exec != null) {
                return exec;
            } else {
                throw new IOException(r + " did not yet start");
            }
View Full Code Here

        this.step = step;
        this.thread = thread;
    }

    @Override protected STMExecution getExecution() throws IOException {
        FlowExecution exec = handle.get();
        if (exec instanceof STMExecution) {
            return (STMExecution) exec;
        } else {
            throw new IOException("expected an STMExecution but got a " + exec);
        }
View Full Code Here

*/
public class PauseActionTest {

    @Test
    public void test() throws Exception {
        FlowExecution flowExecution = Mockito.mock(FlowExecution.class);
        FlowNode flowNode = new FlowNode(flowExecution, "1") {
            @Override
            protected String getTypeDisplayName() {
                return "flownode";
            }
View Full Code Here

TOP

Related Classes of org.jenkinsci.plugins.workflow.flow.FlowExecution

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.