Package hudson.model

Examples of hudson.model.TopLevelItem


    public Boolean create;

    protected int run() throws Exception {
        Hudson h = Hudson.getInstance();

        TopLevelItem item = h.getItem(name);

        if (item == null && !create) {
            stderr.println("Job '" + name + "' does not exist and create is set to false");
            return -1;
        }
View Full Code Here


    /**
     * Tests that the FreeStyleProject can be loaded.
     */
    @LocalData
    public void testFreeStyleJob() {
        TopLevelItem freestyleJobItem = Hudson.getInstance().getItem("freestyleJob");
        assertThat(freestyleJobItem, instanceOf(AbstractProject.class));
        AbstractProject freestyleJob = (AbstractProject)freestyleJobItem;
        assertNotNull(freestyleJob);
        GerritTrigger trigger = GerritTrigger.getTrigger(freestyleJob);
        assertNotNull(trigger);
View Full Code Here

    /**
     * Tests that the MatrixProject can be loaded.
     */
    @LocalData
    public void testMatrixJob() {
        TopLevelItem matrixJobItem = Hudson.getInstance().getItem("matrixJob");
        assertThat(matrixJobItem, instanceOf(AbstractProject.class));
        AbstractProject matrixJob = (AbstractProject)matrixJobItem;
        assertNotNull(matrixJob);
        GerritTrigger trigger = GerritTrigger.getTrigger(matrixJob);
        assertNotNull(trigger);
View Full Code Here

TOP

Related Classes of hudson.model.TopLevelItem

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.