Package hudson.model

Examples of hudson.model.AbstractProject.scheduleBuild2()


     * @throws InterruptedException if so.
     * @throws ExecutionException if so.
     */
    public void testGetBuild() throws IOException, InterruptedException, ExecutionException {
        AbstractProject project = createFreeStyleProject("myProject");
        AbstractBuild build = (AbstractBuild)project.scheduleBuild2(0, new UserCause()).get();
        TriggeredItemEntity wrap = new TriggeredItemEntity(build.getNumber(), "myProject");
        assertNotNull(wrap.getBuild());
        assertEquals("myProject", wrap.getBuild().getProject().getFullName());
    }

View Full Code Here


     * @throws ExecutionException if so.
     * @throws IOException if so.
     */
    public void testInitProjectBuild() throws InterruptedException, ExecutionException, IOException {
        AbstractProject project = createFreeStyleProject("myProject");
        AbstractBuild build = (AbstractBuild)project.scheduleBuild2(0, new UserCause()).get();
        TriggeredItemEntity wrap = new TriggeredItemEntity(project, build);
        assertEquals(project.getFullName(), wrap.getProjectId());
        assertEquals(build.getNumber(), wrap.getBuildNumber().intValue());
    }

View Full Code Here

     * @throws ExecutionException if so.
     * @throws IOException if so.
     */
    public void testInitBuild() throws InterruptedException, ExecutionException, IOException {
        AbstractProject project = createFreeStyleProject("myProject");
        AbstractBuild build = (AbstractBuild)project.scheduleBuild2(0, new UserCause()).get();
        TriggeredItemEntity wrap = new TriggeredItemEntity(build);
        assertEquals(project.getFullName(), wrap.getProjectId());
        assertEquals(build.getNumber(), wrap.getBuildNumber().intValue());
    }
}
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.