Package hudson.model

Examples of hudson.model.Executor.doStop()


                PrintStream logger = listener.getLogger();
                logger.println(e.getMessage());
                logger.println(ExceptionUtils.getStackTrace(e));
                Executor x = Executor.currentExecutor();
                x.recordCauseOfInterruption(DynamicBuild.this, listener);
                x.doStop();
                return Result.FAILURE;
            } finally {
                if (buildEnvironment.tearDownBuildEnvironments(listener)) {
                    return Result.FAILURE;
                }
View Full Code Here


    /** TODO {@link AbstractBuild#doStop} could be pulled up into {@link Run} making this unnecessary. */
    @RequirePOST
    public synchronized HttpResponse doStop() {
        Executor e = getOneOffExecutor();
        if (e != null) {
            return e.doStop();
        } else {
            return HttpResponses.forwardToPreviousPage();
        }
    }

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.