Examples of toShellScript()


Examples of com.groupon.jenkins.buildtype.util.shell.ShellCommands.toShellScript()

    @Test
    public void should_export_environment_variables() {
        VarsSection varsSection = new VarsSection(new MapValue<String, String>(map("RBXOPT", "-X19", "JRUBY_OPTS", "--1.9")));
        ShellCommands script = varsSection.toScript(new Combination(map("script", "main")));
        assertTrue(script.toShellScript().contains("export RBXOPT=-X19"));
        assertTrue(script.toShellScript().contains("export JRUBY_OPTS=--1.9"));
    }
}
View Full Code Here

Examples of com.groupon.jenkins.buildtype.util.shell.ShellCommands.toShellScript()

    @Test
    public void should_export_environment_variables() {
        VarsSection varsSection = new VarsSection(new MapValue<String, String>(map("RBXOPT", "-X19", "JRUBY_OPTS", "--1.9")));
        ShellCommands script = varsSection.toScript(new Combination(map("script", "main")));
        assertTrue(script.toShellScript().contains("export RBXOPT=-X19"));
        assertTrue(script.toShellScript().contains("export JRUBY_OPTS=--1.9"));
    }
}
View Full Code Here

Examples of com.groupon.jenkins.buildtype.util.shell.ShellCommands.toShellScript()

    @Test
    public void should_execute_commands_listed() {
        SerialExecutionSection checkoutSection = new SerialExecutionSection("checkout", configListOrSingleValue("git checkout $git_url", "git submodule init"));
        ShellCommands checkoutCommands = checkoutSection.toScript(null);
        assertTrue(checkoutCommands.toShellScript().contains("git checkout $git_url"));
        assertTrue(checkoutCommands.toShellScript().contains("git checkout $git_url"));

    }
}
View Full Code Here

Examples of com.groupon.jenkins.buildtype.util.shell.ShellCommands.toShellScript()

    @Test
    public void should_execute_commands_listed() {
        SerialExecutionSection checkoutSection = new SerialExecutionSection("checkout", configListOrSingleValue("git checkout $git_url", "git submodule init"));
        ShellCommands checkoutCommands = checkoutSection.toScript(null);
        assertTrue(checkoutCommands.toShellScript().contains("git checkout $git_url"));
        assertTrue(checkoutCommands.toShellScript().contains("git checkout $git_url"));

    }
}
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.