@RequirePOST public void doToggleLogKeep( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { keepLog(!keepLog); rsp.forwardToPreviousPage(req); }
/** * Triggers the schedule update now. * * TODO: ajax on the client side to wait until the update completion might be nice. */ @RequirePOST public void doUpdateNow( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { Jenkins.getInstance().checkPermission(Jenkins.ADMINISTER); for (NodeMonitor nodeMonitor : NodeMonitor.getAll()) { Thread t = nodeMonitor.triggerUpdate(); String columnCaption = nodeMonitor.getColumnCaption(); if (columnCaption != null) { t.setName(columnCaption); } } rsp.forwardToPreviousPage(req); }
/** * Standard implementation of {@link ParameterizedJob#doCancelQueue}. */ @RequirePOST public final void doCancelQueue( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { asJob().checkPermission(Item.CANCEL); Jenkins.getInstance().getQueue().cancel(asJob()); rsp.forwardToPreviousPage(req); }
public void generateResponse(StaplerRequest req, StaplerResponse rsp, Object node) throws IOException, ServletException { rsp.forwardToPreviousPage(req); } };
public void doToggleLogKeep( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { keepLog(!keepLog); rsp.forwardToPreviousPage(req); }
/** {@inheritDoc} */ @Override public void forwardToPreviousPage(StaplerRequest request) throws ServletException, IOException { getWrapped().forwardToPreviousPage(request); }
public void doBranchBuilds(final StaplerRequest req, final StaplerResponse rsp) throws IOException, ServletException, InterruptedException { final String tab = req.getRestOfPath().replace("/", ""); handleBranchTabs(tab, req); rsp.forwardToPreviousPage(req); }
/** * Schedules a new SCM polling command. */ public void doPolling(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { BuildAuthorizationToken.checkPermission(this, authToken, req, rsp); schedulePolling(); rsp.forwardToPreviousPage(req); }
public void doRestart(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { Lifecycle lifecycle = Lifecycle.get(); logger.info("Safely restarting Hudson..."); try { Hudson.getInstance().safeRestart(); } catch (RestartNotSupportedException ex) { logger.error("Restart not supported", ex); } rsp.forwardToPreviousPage(req); }
public void doUnclaim(StaplerRequest req, StaplerResponse resp) throws ServletException, IOException { unclaim(); owner.save(); resp.forwardToPreviousPage(req); }
@RequirePOST public void doToggleLogKeep( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { keepLog(!keepLog); rsp.forwardToPreviousPage(req); }
/** * Schedules a new SCM polling command. */ public void doPolling( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { BuildAuthorizationToken.checkPermission(this, authToken, req, rsp); schedulePolling(); rsp.forwardToPreviousPage(req); }
/** * Schedules a new SCM polling command. */ public void doPolling( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { BuildAuthorizationToken.checkPermission(this, authToken, req, rsp); schedulePolling(); rsp.forwardToPreviousPage(req); }
/** * Triggers the schedule update now. * * TODO: ajax on the client side to wait until the update completion might be nice. */ public void doUpdateNow( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { Hudson.getInstance().checkPermission(Hudson.ADMINISTER); for (NodeMonitor nodeMonitor : NodeMonitor.getAll()) { Thread t = nodeMonitor.triggerUpdate(); t.setName(nodeMonitor.getColumnCaption()); } rsp.forwardToPreviousPage(req); }
/** * Cancels a scheduled build. */ public void doCancelQueue(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { checkPermission(BUILD); Hudson.getInstance().getQueue().cancel(this); rsp.forwardToPreviousPage(req); }
/** * Cancels a scheduled build. */ public void doCancelQueue( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { checkPermission(BUILD); Hudson.getInstance().getQueue().cancel(this); rsp.forwardToPreviousPage(req); }
/** * Cancels a scheduled build. */ public void doCancelQueue( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { checkPermission(BUILD); Hudson.getInstance().getQueue().cancel(this); rsp.forwardToPreviousPage(req); }
public void doClaim(StaplerRequest req, StaplerResponse resp) throws ServletException, IOException { Authentication authentication = Hudson.getAuthentication(); String name = authentication.getName(); String reason = (String) req.getSubmittedForm().get("reason"); boolean sticky = req.getSubmittedForm().getBoolean("sticky"); if (StringUtils.isEmpty(reason)) reason = null; claim(name, reason, sticky); owner.save(); resp.forwardToPreviousPage(req); }
public void doRecordBuildDiskUsage(StaplerRequest req, StaplerResponse res) throws ServletException, IOException, Exception { if(getConfiguration().isCalculationBuildsEnabled() && !getBuildsDiskUsageThread().isExecuting()) getBuildsDiskUsageThread().doAperiodicRun(); res.forwardToPreviousPage(req); }
/** * Standard implementation of {@link ParameterizedJob#doCancelQueue}. */ @RequirePOST public final void doCancelQueue( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { asJob().checkPermission(Item.CANCEL); Jenkins.getInstance().getQueue().cancel(asJob()); rsp.forwardToPreviousPage(req); }