Examples of JenkowBuilder


Examples of com.cisco.step.jenkins.plugins.jenkow.JenkowBuilder

 
  public void testFailingWfRun() throws Exception{
    FreeStyleProject launcher = createFreeStyleProject("launcher");
        DescribableList<Builder,Descriptor<Builder>> bl = launcher.getBuildersList();
    // TODO 4: if we have a way a script task can print into the job console, we no longer need the Shell build step
        bl.add(new JenkowBuilder(getWfName("workflow")));
    bl.add(new Shell("echo wf.done"));
       
        FreeStyleBuild build = launcher.scheduleBuild2(0).get();
        System.out.println(build.getDisplayName()+" completed");
       
View Full Code Here

Examples of com.cisco.step.jenkins.plugins.jenkow.JenkowBuilder

        launchy.getBuildersList().add(new Shell("echo \"launchy running\"; exit 0"));
       
    FreeStyleProject launcher = createFreeStyleProject("launcher");
        DescribableList<Builder,Descriptor<Builder>> bl = launcher.getBuildersList();
    // TODO 4: if we have a way a script task can print into the job console, we no longer need the Shell build step
        bl.add(new JenkowBuilder(getWfName("workflow")));
    bl.add(new Shell("echo wf.done"));
       
        FreeStyleBuild build = launcher.scheduleBuild2(0).get();
        System.out.println(build.getDisplayName()+" completed");
View Full Code Here

Examples of com.cisco.step.jenkins.plugins.jenkow.JenkowBuilder

        launchy.getBuildersList().add(new Shell("echo \"launchy running\"; sleep 1; exit 0"));
       
    FreeStyleProject launcher = createFreeStyleProject("launcher");
        DescribableList<Builder,Descriptor<Builder>> bl = launcher.getBuildersList();
    // TODO 4: if we have a way a script task can print into the job console, we no longer need the Shell build step
        bl.add(new JenkowBuilder(getWfName("workflow")));
       
        FreeStyleBuild build = launcher.scheduleBuild2(0).get();
        System.out.println(build.getDisplayName()+" completed");

        String s = FileUtils.readFileToString(build.getLogFile());
View Full Code Here

Examples of com.cisco.step.jenkins.plugins.jenkow.JenkowBuilder

        launchy.getBuildersList().add(new Shell("echo \"launchy running\"; sleep 5; exit $((BUILD_NUMBER%2!=0))"));
       
    FreeStyleProject launcher = createFreeStyleProject("launcher");
        DescribableList<Builder,Descriptor<Builder>> bl = launcher.getBuildersList();
    // TODO 4: if we have a way a script task can print into the job console, we no longer need the Shell build step
        bl.add(new JenkowBuilder(getWfName("workflow")));
    bl.add(new Shell("echo wf.done"));
       
        FreeStyleBuild build = launcher.scheduleBuild2(0).get();
        System.out.println(build.getDisplayName()+" completed");
       
View Full Code Here

Examples of com.cisco.step.jenkins.plugins.jenkow.JenkowBuilder

 
  public void testSimpleWfRun() throws Exception{
    FreeStyleProject launcher = createFreeStyleProject("launcher");
        DescribableList<Builder,Descriptor<Builder>> bl = launcher.getBuildersList();
    // TODO 4: if we have a way a script task can print into the job console, we no longer need the Shell build step
        bl.add(new JenkowBuilder(getWfName("workflow")));
    bl.add(new Shell("echo wf.done"));
       
        FreeStyleBuild build = launcher.scheduleBuild2(0).get();
       
        // TODO 9: we need to somehow mark the user task as complete
View Full Code Here

Examples of com.cisco.step.jenkins.plugins.jenkow.JenkowBuilder

 
  public void testSimpleWfRun() throws Exception{
    FreeStyleProject launcher = createFreeStyleProject("launcher");
        DescribableList<Builder,Descriptor<Builder>> bl = launcher.getBuildersList();
    // TODO 4: if we have a way a script task can print into the job console, we no longer need the Shell build step
        bl.add(new JenkowBuilder(getWfName("workflow")));
    bl.add(new Shell("echo wf.done"));
       
        FreeStyleBuild build = launcher.scheduleBuild2(0).get();
        System.out.println(build.getDisplayName()+" completed");
View Full Code Here

Examples of com.cisco.step.jenkins.plugins.jenkow.JenkowBuilder

public class ActualTest extends JenkowTestCase{

  public void testAbortJob() throws Exception{
    FreeStyleProject launcher = createFreeStyleProject("launcher");
        launcher.getBuildersList().add(new JenkowBuilder(getWfName("workflow")));
       
        launcher.scheduleBuild2(0);
       
        RuntimeService rtSvc = JenkowEngine.getEngine().getRuntimeService();
        while (launcher.getLastBuild() == null || rtSvc.createExecutionQuery().count() < 1){
View Full Code Here

Examples of com.cisco.step.jenkins.plugins.jenkow.JenkowBuilder

 
  public void testScriptSleepScript() throws Exception{
    FreeStyleProject launcher = createFreeStyleProject("launcher");
        DescribableList<Builder,Descriptor<Builder>> bl = launcher.getBuildersList();
    // TODO 4: if we have a way a script task can print into the job console, we no longer need the Shell build step
        bl.add(new JenkowBuilder(getWfName("workflow")));
    bl.add(new Shell("echo wf.done"));
       
        FreeStyleBuild build = launcher.scheduleBuild2(0).get();
        System.out.println(build.getDisplayName()+" completed");
View Full Code Here

Examples of com.cisco.step.jenkins.plugins.jenkow.JenkowBuilder

        three.getBuildersList().add(new Shell("echo \"three running\"; sleep 11; exit 0"));

        FreeStyleProject launcher = createFreeStyleProject("launcher");
        DescribableList<Builder,Descriptor<Builder>> bl = launcher.getBuildersList();
    // TODO 4: if we have a way a script task can print into the job console, we no longer need the Shell build step
        bl.add(new JenkowBuilder(getWfName("workflow")));
    bl.add(new Shell("echo wf.done"));
       
        FreeStyleBuild build = launcher.scheduleBuild2(0).get();
        System.out.println(build.getDisplayName()+" completed");
       
View Full Code Here

Examples of com.cisco.step.jenkins.plugins.jenkow.JenkowBuilder

        JenkowWorkflowRepository repo = JenkowPlugin.getInstance().getRepo();
        repo.ensureWorkflowDefinition("wf1");
       
        FreeStyleProject launcher = createFreeStyleProject("j1");
        DescribableList<Builder,Descriptor<Builder>> bl = launcher.getBuildersList();
        bl.add(new JenkowBuilder("wf1"));
        bl.add(new Shell("echo wf.done"));
        configRoundtrip(launcher)// work around the problem in the core of not registering our builder's project actions

        testImage("job/j1/jenkow/graph","default");
        testImage("job/j1/jenkow/graph/0","0");
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.