Package hudson.matrix

Examples of hudson.matrix.Axis


        AxisList list = new AxisList();
        List<String> values = new LinkedList<String>();
        for (int slaveInx : slaveInxes) {
            values.add(slaves.get(slaveInx).getLabelString());
        }
        list.add(new Axis("label",values));
        project.setAxes(list);
    }
View Full Code Here


        assertEquals(0, downstreamProjects.size());
    }
   
    public void testMatrixDependency() throws Exception {
        MatrixProject matrixProject = createMatrixProject();
        matrixProject.setAxes(new AxisList(new Axis("foo", "a", "b")));
        FreeStyleProject freestyleProject = createFreeStyleProjectWithFingerprints(singleContents, singleFiles);
        addFingerprinterToProject(matrixProject, singleContents, singleFiles);

        hudson.rebuildDependencyGraph();
View Full Code Here

    }



    private AxisList getAxisList(BuildConfiguration buildConfiguration) {
        AxisList  axisList = new AxisList(new Axis("script", "main"));
        if (buildConfiguration.isMultiLanguageVersions() && buildConfiguration.isMultiScript()) {
            axisList = new AxisList(new Axis("language_version", buildConfiguration.getLanguageVersions()), new Axis("script", buildConfiguration.getScriptKeys()));
        }
        else if (buildConfiguration.isMultiLanguageVersions()) {
            axisList = new AxisList(new Axis("language_version", buildConfiguration.getLanguageVersions()));
        }
        else if (buildConfiguration.isMultiScript()) {
            axisList = new AxisList(new Axis("script", buildConfiguration.getScriptKeys()));
        }
        return axisList;
    }
View Full Code Here

        this.config = config;
        this.buildId = buildId;
        this.checkoutCommands = checkoutCommands;
    }
    public AxisList getAxisList() {
        AxisList  axisList = new AxisList(new Axis("command", "main"));
        if (isParallized()) {
            Set commandKeys =  ((Map) config.get("command")).keySet();
            axisList = new AxisList(new Axis("command", new ArrayList<String>(commandKeys)));
        }
        return axisList;
    }
View Full Code Here

        final int[] run = new int[1]; // count the number of times the perform is called

        commit("a", johnDoe, "commit #1");

        MatrixProject mp = createMatrixProject("xyz");
        mp.setAxes(new AxisList(new Axis("VAR", "a", "b")));
        mp.setScm(new GitSCM(workDir.getAbsolutePath()));
        mp.addPublisher(new GitPublisher(
            Collections.singletonList(new TagToPush("origin", "foo", true)),
            Collections.<BranchToPush>emptyList(), true, true) {
            @Override
View Full Code Here

        assertTrue(property.allowOverrideValue(null, new Object()));
        //Test properties that don't have correct equals methods
        assertFalse(property.allowOverrideValue(new JavadocArchiver("", false), new JavadocArchiver("", false)));
        assertTrue(property.allowOverrideValue(new JavadocArchiver("", true), new JavadocArchiver("", false)));
        //Object with transient filds should be taken into account
        assertTrue(property.allowOverrideValue(new AxisList(new Axis("DB", "mysql")), new AxisList()));
        assertTrue(property.allowOverrideValue(new AxisList(new Axis("DB", "mysql")),
            new AxisList(new Axis("DB", "mysql", "mssql"))));
        assertTrue(property.allowOverrideValue(new AxisList(new Axis("DB", "mysql")),
            new AxisList(new Axis("DB", "mssql"))));
    }
View Full Code Here

TOP

Related Classes of hudson.matrix.Axis

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.