/** * Creates a user account. Used by admins. * * This version behaves differently from {@link #doCreateAccount(StaplerRequest, StaplerResponse)} in that * this is someone creating another user. */ @RequirePOST public void doCreateAccountByAdmin(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { createAccountByAdmin(req, rsp, "addUser.jelly", "."); // send the user back to the listing page on success }
@RequirePOST public void doLaunchSlaveAgent(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { // this computer never returns null from channel, so // this method shall never be invoked. rsp.sendError(SC_NOT_FOUND); }
/** * Creates an user account. Used for self-registration. */ @RequirePOST public User doCreateAccount(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { return _doCreateAccount(req, rsp, "signup.jelly"); }
@RequirePOST public synchronized TopLevelItem doCreateItem( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { return itemGroupMixIn.createTopLevelItem(req, rsp); }
@RequirePOST public synchronized HttpRedirect doQuietDown() throws IOException { try { return doQuietDown(false,0); } catch (InterruptedException e) { throw new AssertionError(); // impossible } }
@Override @RequirePOST public void doConfigSubmit(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException, FormException { Jenkins.getInstance().doConfigExecutorsSubmit(req, rsp); }
@RequirePOST public HttpResponse doClear() throws IOException { handler.clear(); return HttpResponses.redirectToDot(); }
@RequirePOST public HttpResponse doInstallNow() throws IOException { deploy(true); return HttpResponses.redirectTo("../.."); }
/** * Invalidates the update center JSON data for all the sites and force re-retrieval. * * @since 1.432 */ @RequirePOST public HttpResponse doInvalidateData() { for (UpdateSite site : sites) { site.doInvalidateData(); } return HttpResponses.ok(); }
@RequirePOST public void doToggleLogKeep( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { keepLog(!keepLog); rsp.forwardToPreviousPage(req); }
/** * Cancels a scheduled build. * @see ParameterizedJobMixIn#doCancelQueue */ @RequirePOST default void doCancelQueue(StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { getParameterizedJobMixIn().doCancelQueue(req, rsp); }
/** * Accepts the new description. */ @RequirePOST public synchronized void doSubmitDescription( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { getPrimaryView().doSubmitDescription(req, rsp); }
@RequirePOST @Override public Item doCreateItem(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { return getProxiedView().doCreateItem(req, rsp); }
/** * Making the installation web bound. */ @RequirePOST public HttpResponse doInstall() throws IOException { deploy(false); return HttpResponses.redirectTo("../.."); }
/** * Performs the downgrade of the plugin. */ @RequirePOST public HttpResponse doDowngrade() throws IOException { deployBackup(); return HttpResponses.redirectTo("../.."); } }
/** * Remove the setupWizard filter, ensure all updates are written to disk, etc */ @RequirePOST public HttpResponse doCompleteInstall() throws IOException, ServletException { completeSetup(); return HttpResponses.okJSON(); }
/** * Save all files containing only unreadable data (no data upgrades), which discards this data. * Remove those items from the data map. */ @RequirePOST public HttpResponse doDiscard(StaplerRequest req, StaplerResponse rsp) { saveAndRemoveEntries( new Predicate<Map.Entry<SaveableReference,VersionRange>>() { @Override public boolean apply(Map.Entry<SaveableReference, VersionRange> entry) { return entry.getValue().max == null; } }); return HttpResponses.forwardToPreviousPage(); }
@RequirePOST public synchronized void doCreateView(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException, ParseException, FormException { checkPermission(View.CREATE); addView(View.create(req, rsp, this)); }
/** * Invalidates the cached data and force retrieval. * * @since 1.432 */ @RequirePOST public HttpResponse doInvalidateData() { Jenkins.getInstance().checkPermission(Jenkins.ADMINISTER); dataTimestamp = 0; data = null; return HttpResponses.ok(); }
@RequirePOST public synchronized void doCreateView( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException, FormException { checkPermission(View.CREATE); addView(View.create(req,rsp, this)); }