Package org.jenkinsci.plugins.workflow.support.steps.build

Examples of org.jenkinsci.plugins.workflow.support.steps.build.BuildTriggerStep


    @Test public void multilineStrings() throws Exception {
        assertRoundTrip(new EchoStep("echo hello\necho 1/2 way\necho goodbye"), "echo '''echo hello\necho 1/2 way\necho goodbye'''");
    }

    @Test public void buildTriggerStep() throws Exception {
        BuildTriggerStep step = new BuildTriggerStep("downstream");
        assertRoundTrip(step, "build 'downstream'");
        step.setParameters(Arrays.asList(new StringParameterValue("branch", "default"), new BooleanParameterValue("correct", true)));
        /* TODO figure out how to add support for ParameterValue without those having Descriptor’s yet
                currently instantiate works but uninstantiate does not offer a FQN
                (which does not matter in this case since BuildTriggerStep/config.jelly does not offer to bind parameters anyway)
        assertRoundTrip(step, "build job: 'downstream', parameters: [[$class: 'hudson.model.StringParameterValue', name: 'branch', value: 'default'], [$class: 'hudson.model.BooleanParameterValue', name: 'correct', value: true]]");
        */
 
View Full Code Here

TOP

Related Classes of org.jenkinsci.plugins.workflow.support.steps.build.BuildTriggerStep

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.