Package jenkins.model.CauseOfInterruption

Examples of jenkins.model.CauseOfInterruption.UserInterruption


        Future<FreeStyleBuild> r = p.scheduleBuild2(0);
        e.block()// wait until we are safe to interrupt
        assertTrue(p.getLastBuild().isBuilding());
        User johnny = User.get("Johnny");
        p.getLastBuild().getExecutor().interrupt(Result.FAILURE,
                new UserInterruption(johnny),   // test the merge semantics
                new UserInterruption(johnny));

        FreeStyleBuild b = r.get();

        // make sure this information is recorded
        assertEquals(b.getResult(),Result.FAILURE);
View Full Code Here


        if(a instanceof AnonymousAuthenticationToken || a==ACL.SYSTEM)
            interrupt(result, new CauseOfInterruption[0]);
        else {
            // worth recording who did it
            // avoid using User.get() to avoid deadlock.
            interrupt(result, new UserInterruption(a.getName()));
        }
    }
View Full Code Here

TOP

Related Classes of jenkins.model.CauseOfInterruption.UserInterruption

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.