/** * Stops this build if it's still going. * * If we use this/executor/stop URL, it causes 404 if the build is already killed, * as {@link #getExecutor()} returns null. * * @since 1.489 */ @RequirePOST public synchronized HttpResponse doStop() throws IOException, ServletException { Executor e = getExecutor(); if (e==null) e = getOneOffExecutor(); if (e!=null) return e.doStop(); else // nothing is building return HttpResponses.forwardToPreviousPage(); }
/** * Stops this build if it's still going. * * @return the Http response. */ @RequirePOST public synchronized HttpResponse doStop() throws IOException, ServletException { Executor e = Executor.of(this); if (e != null) { return e.doStop(); } else { // nothing is building return HttpResponses.forwardToPreviousPage(); } }
/** * Stops this build if it's still going. * * @return the Http response. */ @RequirePOST public synchronized HttpResponse doStop() throws IOException, ServletException { Executor e = Executor.of(this); if (e != null) { return e.doStop(); } else { // nothing is building return HttpResponses.forwardToPreviousPage(); } }
return HttpResponses.forwardToPreviousPage(); return response; } else { return HttpResponses.forwardToPreviousPage();
return HttpResponses.forwardToPreviousPage(); return response; } else { return HttpResponses.forwardToPreviousPage();
/** * Stops this build if it's still going. * * If we use this/executor/stop URL, it causes 404 if the build is already killed, * as {@link #getExecutor()} returns null. * * @since 1.489 */ @RequirePOST public synchronized HttpResponse doStop() throws IOException, ServletException { Executor e = getExecutor(); if (e==null) e = getOneOffExecutor(); if (e!=null) return e.doStop(); else // nothing is building return HttpResponses.forwardToPreviousPage(); }