Package hudson.plugins.parameterizedtrigger

Examples of hudson.plugins.parameterizedtrigger.PredefinedBuildParameters


    Project projectA = createFreeStyleProject("projectA");
    String properties = "KEY=value";
    projectA.getPublishersList().add(
        new BuildTrigger(new BuildTriggerConfig("projectB", ResultCondition.SUCCESS,
            new PredefinedBuildParameters(properties))));

    CaptureEnvironmentBuilder builder = new CaptureEnvironmentBuilder();
    Project projectB = createFreeStyleProject("projectB");
    projectB.getBuildersList().add(builder);
    projectB.setQuietPeriod(1);
View Full Code Here


        Project projectA = createFreeStyleProject("projectA");
        String properties = "KEY=123\n" // 123 in multibytes
                + "KEY=value\n";    // "KEY" in multibytes
        projectA.getPublishersList().add(
                new BuildTrigger(new BuildTriggerConfig("projectB", ResultCondition.SUCCESS,
                        new PredefinedBuildParameters(properties))));

        CaptureEnvironmentBuilder builder = new CaptureEnvironmentBuilder();
        Project projectB = createFreeStyleProject("projectB");
        projectB.getBuildersList().add(builder);
        projectB.setQuietPeriod(1);
View Full Code Here

        assertEquals(3, projectB.getLastBuild().getNumber());
    }

    private void schedule(Project projectA, Project projectB, ResultCondition condition)
            throws IOException, InterruptedException, ExecutionException {
        projectA.getPublishersList().replace(new BuildTrigger(new BuildTriggerConfig("projectB", condition, new PredefinedBuildParameters(""))));
        hudson.rebuildDependencyGraph();
        projectA.scheduleBuild2(0).get();
        Queue.Item q = hudson.getQueue().getItem(projectB);
        if (q != null) q.getFuture().get();
    }
View Full Code Here

                      Result.FAILURE,
                      Result.UNSTABLE,
                      Result.FAILURE
              ),
              Arrays.<AbstractBuildParameters>asList(
                      new PredefinedBuildParameters("test=test")
              )
      )));
     
      FreeStyleBuild blockedBuild = p1.scheduleBuild2(0).get();
      assertBuildStatusSuccess(blockedBuild);
     
      // Unblocked build
      p1.getBuildersList().clear();
      p1.getBuildersList().add(new TriggerBuilder(new BlockableBuildTriggerConfig(
              p2.getName(),
              null,
              Arrays.<AbstractBuildParameters>asList(
                      new PredefinedBuildParameters("test=test")
              )
      )));
     
      FreeStyleBuild unblockedBuild = p1.scheduleBuild2(0).get();
      assertBuildStatusSuccess(unblockedBuild);
View Full Code Here

        projectB.getBuildersList().add(builder);
        projectB.setQuietPeriod(1);
        projectA.getPublishersList().add(new BuildTrigger(
                new BuildTriggerConfig("projectB", ResultCondition.SUCCESS,
                    new CurrentBuildParameters(),
                    new PredefinedBuildParameters("BAZ=moo\nHOHO=blah"))));
        hudson.rebuildDependencyGraph();
        Run r = (Run)projectA.scheduleBuild2(0, new UserCause(), new ParametersAction(
                new StringParameterValue("BAR", "foo"),
                new StringParameterValue("BAZ", "override-me"))).get();
        Queue.Item q = hudson.getQueue().getItem(projectB);
View Full Code Here

TOP

Related Classes of hudson.plugins.parameterizedtrigger.PredefinedBuildParameters

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.