/** * Performs the configuration. * * @param req the request. * @param json the JSON object. * @return {@code false} to keep the client in the same config page. * @throws FormException if something goes wrong. */ private boolean configure(StaplerRequest req, JSONObject json) throws FormException { // for compatibility reasons, the actual value is stored in Jenkins Jenkins j = Jenkins.getActiveInstance(); j.checkPermission(Jenkins.ADMINISTER); // persist all the provider configs boolean result = true; for (Descriptor<?> d : Functions.getSortedDescriptorsForGlobalConfig(FILTER)) { result &= configureDescriptor(req, json, d); } return result; }
/** * Performs the configuration. * * @param req the request. * @param json the JSON object. * @return {@code false} to keep the client in the same config page. * @throws FormException if something goes wrong. */ private boolean configure(StaplerRequest req, JSONObject json) throws FormException { // for compatibility reasons, the actual value is stored in Jenkins Jenkins j = Jenkins.getActiveInstance(); j.checkPermission(Jenkins.ADMINISTER); // persist all the provider configs boolean result = true; for (Descriptor<?> d : Functions.getSortedDescriptorsForGlobalConfig(FILTER)) { result &= configureDescriptor(req, json, d); } return result; }