Package org.jenkinsci.plugins.workflow.flow

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


        }
    }

    @SuppressWarnings("unchecked") // Binding
    void initialize() throws IOException {
        FlowExecutionOwner owner = execution.getOwner();
        getBinding().setVariable(STEPS_VAR, new DSL(owner));
        Queue.Executable qe = owner.getExecutable();
        if (qe instanceof Run) {
            EnvVars paramEnv = new EnvVars();
            Run<?,?> run = (Run) qe;
            ParametersAction a = run.getAction(ParametersAction.class);
            if (a != null) {
View Full Code Here


        }
        return super.getProperty(property);
    }

    private EnvActionImpl env() {
        FlowExecutionOwner owner = execution.getOwner();
        try {
            Queue.Executable qe = owner.getExecutable();
            if (qe instanceof Run) {
                Run<?,?> run = (Run) qe;
                EnvActionImpl action = run.getAction(EnvActionImpl.class);
                if (action == null) {
                    action = new EnvActionImpl();
View Full Code Here

                    if (nodeName.equals("loadedScripts")) {
                        Map loadedScripts = readChild(reader, context, Map.class, result);
                        setField(result, "loadedScripts", loadedScripts);
                    } else
                    if (nodeName.equals("owner")) {
                        FlowExecutionOwner owner = (FlowExecutionOwner) readChild(reader, context, Object.class, result);
                        setField(result, "owner", owner);
                        setField(result, "storage", storage = result.createStorage());
                    } else
                    if (nodeName.equals("user")) {
                        String user = readChild(reader, context, String.class, result);
View Full Code Here

TOP

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

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.