Examples of TextAxis


Examples of hudson.matrix.TextAxis

     *
     * @throws Exception if so.
     */
    public void testMatrixConfiguration() throws Exception {
        MatrixProject matrix = this.createMatrixProject("myMatrix");
        matrix.getAxes().add(new TextAxis("Test1", "one", "two"));
        matrix.getAxes().add(new TextAxis("Test2", "A", "B"));
        MetadataJobProperty property = new MetadataJobProperty();
        property.addChild(TreeStructureUtil.createPath("hello", "my matrix description", false, false,
                "the", "world", "says"));
        matrix.addProperty(property);
        configRoundtrip(matrix);
View Full Code Here

Examples of hudson.matrix.TextAxis

   
    public void testMatrixBuildsOnSameNodes() throws Exception {
        // all builds runs on master.
        // upstream matrix projects creates properties files in each builds.
        MatrixProject upstream = createMatrixProject();
        upstream.setAxes(new AxisList(new TextAxis("childname", "child1", "child2")));
        WriteFileBuilder wfb = new WriteFileBuilder("properties.txt", "triggered_${childname}=true");
       
        FreeStyleProject downstream = createFreeStyleProject();
       
        // Without useMatrixBuild, publisher
View Full Code Here

Examples of hudson.matrix.TextAxis

    @Override
    protected MatrixProject createMatrixProject(String name) throws IOException {
        MatrixProject p = super.createMatrixProject(name);
        // set up 2x2 matrix
        AxisList axes = new AxisList();
        axes.add(new TextAxis("db","mysql","oracle"));
        axes.add(new TextAxis("direction","north","south"));
        p.setAxes(axes);

        return p;
    }
View Full Code Here

Examples of hudson.matrix.TextAxis

        }
    }
   
    public void testMatrixBuildsCombinationFilter() throws Exception {
        MatrixProject upstream = createMatrixProject();
        upstream.setAxes(new AxisList(new TextAxis("childname", "child1", "child2", "child3")));
        upstream.getBuildersList().add(new WriteFileBuilder("properties.txt", "triggered_${childname}=true"));
       
        FreeStyleProject downstream = createFreeStyleProject();
       
        // without combinationFilter
View Full Code Here

Examples of hudson.matrix.TextAxis

        }
    }
   
    public void testMatrixBuildsOnlyExactRuns() throws Exception {
        MatrixProject upstream = createMatrixProject();
        upstream.setAxes(new AxisList(new TextAxis("childname", "child1", "child2", "child3")));
        upstream.getBuildersList().add(new WriteFileBuilder("properties.txt", "triggered_${childname}=true"));
       
        FreeStyleProject downstream = createFreeStyleProject();
       
        // Run build.
        // builds of child1, child2, child3 is created.
        upstream.scheduleBuild2(0).get();
       
        // child2 is dropped
        upstream.setAxes(new AxisList(new TextAxis("childname", "child1", "child3")));
       
        // without onlyExactRuns
        {
            upstream.getPublishersList().clear();
            upstream.getPublishersList().add(new BuildTrigger(
View Full Code Here

Examples of hudson.matrix.TextAxis

    @Bug(22705)
    public void testMatrixBuildsConfiguration() throws Exception {
        FreeStyleProject downstream = createFreeStyleProject();
       
        MatrixProject upstream = createMatrixProject();
        upstream.setAxes(new AxisList(new TextAxis("axis1", "value1", "value2")));
        upstream.getPublishersList().add(new BuildTrigger(
                new BuildTriggerConfig(downstream.getFullName(), ResultCondition.SUCCESS, true, Arrays.<AbstractBuildParameters>asList(
                        new FileBuildParameters("properties.txt", "UTF-8", true, true, "axis1=value1", true)
                ))
        ));
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.