Package hudson.plugins.parameterizedtrigger

Examples of hudson.plugins.parameterizedtrigger.CurrentBuildParameters


  }

  public void test_oddchars() throws Exception {
    Project<?, ?> projectA = createFreeStyleProject("projectA");
    List<AbstractBuildParameters> buildParameters = new ArrayList<AbstractBuildParameters>();
    buildParameters.add(new CurrentBuildParameters());
    BlockingBehaviour neverFail = new BlockingBehaviour("never", "never", "never");

    String testName = "odd£()+}{-=~chars-10";
    String testNameResult = "odd_chars_10";
    BlockableBuildTriggerConfig config = new BlockableBuildTriggerConfig(testName, neverFail, buildParameters);
View Full Code Here


  }

  public void testNonBlocking() throws Exception {
    Project<?, ?> projectA = createFreeStyleProject("projectA");
    List<AbstractBuildParameters> buildParameters = new ArrayList<AbstractBuildParameters>();
    buildParameters.add(new CurrentBuildParameters());
    BlockingBehaviour neverFail = new BlockingBehaviour("never", "never", "never");
    BlockableBuildTriggerConfig config = new BlockableBuildTriggerConfig("projectB", neverFail, buildParameters);

    BlockableBuildTriggerConfig nonBlockingConfig = new BlockableBuildTriggerConfig("projectC", null, buildParameters);
    projectA.getBuildersList().add(new TriggerBuilder(config, nonBlockingConfig));
View Full Code Here

  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.addProperty(new ParametersDefinitionProperty(
        new StringParameterDefinition("key1", "value1"),
View Full Code Here

        CaptureEnvironmentBuilder builder = new CaptureEnvironmentBuilder();
        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();
View Full Code Here

TOP

Related Classes of hudson.plugins.parameterizedtrigger.CurrentBuildParameters

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.