Package hudson.plugins.parameterizedtrigger

Examples of hudson.plugins.parameterizedtrigger.BuildTriggerConfig$DescriptorImpl


  public void test() throws Exception {

    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);
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);
View Full Code Here

    DumbSlave slave0 = createOnlineSlave();
    DumbSlave slave1 = createOnlineSlave();
   
    Project<?,?> projectA = createFreeStyleProject("projectA");
    projectA.getPublishersList().add(
        new BuildTrigger(new BuildTriggerConfig("projectB", ResultCondition.SUCCESS, new NodeParameters())));

    projectA.setAssignedNode(slave0);
   
    CaptureEnvironmentBuilder builder = new CaptureEnvironmentBuilder();
    Project projectB = createFreeStyleProject("projectB");
View Full Code Here

    DumbSlave slave0 = createOnlineSlave();
    DumbSlave slave1 = createOnlineSlave();
   
    Project<?,?> projectA = createFreeStyleProject("projectA");
    projectA.getPublishersList().add(
        new BuildTrigger(new BuildTriggerConfig("projectB", ResultCondition.SUCCESS, new NodeParameters())));

    projectA.setAssignedNode(slave0);
   
    CaptureEnvironmentBuilder builder = new CaptureEnvironmentBuilder();
    Project projectB = createFreeStyleProject("projectB");
View Full Code Here

    DumbSlave slave1 = createOnlineSlave();
    DumbSlave slave2 = createOnlineSlave();
   
    Project<?,?> projectA = createFreeStyleProject("projectA");
    projectA.getPublishersList().add(
        new BuildTrigger(new BuildTriggerConfig("projectB", ResultCondition.SUCCESS, new NodeParameters())));

    projectA.setAssignedNode(slave0);
   
    CaptureEnvironmentBuilder builder = new CaptureEnvironmentBuilder();
    Project projectB = createFreeStyleProject("projectB");
View Full Code Here

    p2.setScm(new SubversionSCM(
          "https://svn.jenkins-ci.org/trunk/hudson/test-projects/trivial-ant"));

    p1.getPublishersList().add(
        new BuildTrigger(new BuildTriggerConfig(p2.getName(), ResultCondition.SUCCESS,
            new SubversionRevisionBuildParameters())));
    hudson.rebuildDependencyGraph();

    FreeStyleBuild b1 = p1.scheduleBuild2(0, new Cause.UserCause()).get();
    Queue.Item q = hudson.getQueue().getItem(p2);
View Full Code Here

public class CurrentBuildParametersTest extends HudsonTestCase {

  public void test() throws Exception {
    Project<?,?> projectA = createFreeStyleProject("projectA");
    projectA.getPublishersList().add(
        new BuildTrigger(new BuildTriggerConfig("projectB", ResultCondition.SUCCESS, new CurrentBuildParameters())));

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

 
  public void testPostBuildTriggerNoParameters(boolean pWithoutParameters) throws Exception {
    Project<?,?> projectA = createFreeStyleProject("projectA");
    List<AbstractBuildParameters> buildParameters = new ArrayList<AbstractBuildParameters>();
    buildParameters.add(new CurrentBuildParameters());
    projectA.getPublishersList().add(new BuildTrigger(new BuildTriggerConfig("projectB", ResultCondition.SUCCESS, pWithoutParameters, buildParameters)));
    CaptureEnvironmentBuilder builder = new CaptureEnvironmentBuilder();

    Project<?,?> projectB = createFreeStyleProject("projectB");
    projectB.getBuildersList().add(builder);
    projectB.setQuietPeriod(1);
View Full Code Here

      // test conditional builder (single)
      TriggerBuilder tb2 = new TriggerBuilder(new BlockableBuildTriggerConfig(childJobNamesString.toString(), null, buildParameters));       
      project.getBuildersList().add(new SingleConditionalBuilder(tb2, new AlwaysRun(), new BuildStepRunner.Run()));

    //setup post build trigger
    project.getPublishersList().add(new BuildTrigger(new BuildTriggerConfig(childJobNamesString.toString(), ResultCondition.SUCCESS, new CurrentBuildParameters())));
    return project;
  }
View Full Code Here

                (TopLevelItemDescriptor)jenkins.getDescriptor(FreeStyleProject.class),
                "ProjectB",
                true
        );
       
        p1.getPublishersList().add(new BuildTrigger(new BuildTriggerConfig(
                p2.getName(),   // This should not be getFullName().
                ResultCondition.ALWAYS,
                true,
                Arrays.asList((AbstractBuildParameters)new CurrentBuildParameters())
        )));
View Full Code Here

TOP

Related Classes of hudson.plugins.parameterizedtrigger.BuildTriggerConfig$DescriptorImpl

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.