Package org.jvnet.hudson.test

Examples of org.jvnet.hudson.test.ExtractResourceSCM


      project.getBuildersList().add(new Shell("echo \"$JAVA_HOME\""));
    }
    project.setJDK(hudson.getJDK("varJDK"));

    // set appropriate SCM to get the necessary build files
    project.setScm(new ExtractResourceSCM(getClass().getResource(
        "/simple-projects.zip")));

    // test the regular slave - variable not expanded
    project.setAssignedLabel(slaveRegular.getSelfLabel());
    FreeStyleBuild build = project.scheduleBuild2(0).get();
View Full Code Here


            System.out.println("Cannot do testFreeStyleAntOnSlave without ANT_HOME");
            return;
        }
    FreeStyleProject project = createFreeStyleProject();
    project.setJDK(hudson.getJDK("varJDK"));
    project.setScm(new ExtractResourceSCM(getClass().getResource(
        "/simple-projects.zip")));

    String buildFile = "build.xml${" + DUMMY_LOCATION_VARNAME + "}";
    // we need additional escapes because bash itself expanding
    project.getBuildersList().add(
View Full Code Here

  }

  public void testFreeStyleMavenOnSlave() throws Exception {
    FreeStyleProject project = createFreeStyleProject();
    project.setJDK(hudson.getJDK("varJDK"));
    project.setScm(new ExtractResourceSCM(getClass().getResource(
        "/simple-projects.zip")));

    project.getBuildersList().add(
                new Maven("test", "varMaven", "pom.xml${"
              + DUMMY_LOCATION_VARNAME + "}", "", "",
View Full Code Here

  }

    public void testNativeMavenOnSlave() throws Exception {
        MavenModuleSet project = createMavenProject();
        project.setJDK(hudson.getJDK("varJDK"));
        project.setScm(new ExtractResourceSCM(getClass().getResource(
                "/simple-projects.zip")));

        project.setMaven("varMaven");
        project.setGoals("clean${" + DUMMY_LOCATION_VARNAME + "}");
View Full Code Here

  }

  public void test_multiplefiles() throws Exception {

    Project projectA = createFreeStyleProject("projectA");
    projectA.setScm(new ExtractResourceSCM(getClass().getResource("multiple_property_files.zip")));
    projectA.getPublishersList().add(
        new BuildTrigger(
        new BuildTriggerConfig("projectB", ResultCondition.SUCCESS,
            new FileBuildParameters("a_properties.txt,z_properties.txt"))));
View Full Code Here

  }

  public void test_failOnMissingFile() throws Exception {

    Project projectA = createFreeStyleProject("projectA");
    projectA.setScm(new ExtractResourceSCM(getClass().getResource("multiple_property_files.zip")));
    projectA.getPublishersList().add(
        new BuildTrigger(
        new BuildTriggerConfig("projectB", ResultCondition.SUCCESS,
            new FileBuildParameters("a_properties.txt,missing_file.txt,z_properties.txt",true))));
View Full Code Here

TOP

Related Classes of org.jvnet.hudson.test.ExtractResourceSCM

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.