@Override public boolean configure(StaplerRequest req, JSONObject json) throws FormException { try { for (JSONObject o : StructuredForm.toList(json, "plugin")) Jenkins.getInstance() .pluginManager .getPlugin(o.getString("name")) .getPlugin() .configure(req, o); return true; } catch (IOException | ServletException e) { throw new FormException(e, "plugin"); } }
public String getCommand() { return RunIdMigrator.getUnmigrationCommandLine(Jenkins.getInstance().getRootDir()); }
@Override public Object getTarget() { Jenkins.getInstance().checkPermission(Jenkins.ADMINISTER); return this; }