public SignupInfo(StaplerRequest req) { req.bindParameters(this); }
@Override public boolean configure(StaplerRequest req, JSONObject formData) throws FormException { installations = req.bindParametersToList(RubyInstallation.class, "rake.") .toArray(new RubyInstallation[0]); rvm = req.bindParameters(Rvm.class, "rvm."); installations = getGlobalRubies(rvm, installations); save(); return true; }
@Override public P4Web newInstance(StaplerRequest req, JSONObject formData) throws FormException { return req.bindParameters(P4Web.class,"p4web."); } }
@Override public JobProperty<?> newInstance(StaplerRequest req, JSONObject formData) throws FormException { JiraProjectProperty jpp = req.bindParameters(JiraProjectProperty.class, "jira."); if (jpp.siteName == null) { jpp = null; // not configured } return jpp; }
@Override public GitWeb newInstance(StaplerRequest req, JSONObject jsonObject) throws FormException { return req.bindParameters(GitWeb.class, "gitweb."); } }
@Override public RedmineWeb newInstance(StaplerRequest req, JSONObject jsonObject) throws FormException { return req.bindParameters(RedmineWeb.class, "redmineweb."); } }
@Override public JobProperty<?> newInstance(StaplerRequest req, JSONObject formData) throws FormException { JiraProjectProperty jpp = req.bindParameters( JiraProjectProperty.class, "jira."); if (jpp.siteName == null) jpp = null; // not configured return jpp; }
public @Override FishEye newInstance(StaplerRequest req, JSONObject json) throws FormException { return req.bindParameters(FishEye.class,"fisheye."); } }
@Override public FishEyePerforce newInstance(StaplerRequest req, JSONObject formData) throws FormException { return req.bindParameters(FishEyePerforce.class, "fisheye.perforce."); }
@Override public boolean configure(StaplerRequest req, JSONObject json) throws FormException { req.bindParameters(this, "ivy"); save(); return true; }
@Override public boolean configure(StaplerRequest req, JSONObject json) throws FormException { req.bindParameters(this, "generic"); save(); return true; }
private String getPerformanceReportNameFile(StaplerRequest request) { PerformanceReportPosition performanceReportPosition = new PerformanceReportPosition(); request.bindParameters(performanceReportPosition); return getPerformanceReportNameFile(performanceReportPosition); }
private String getTestSuiteReportFilename(final StaplerRequest request) { PerformanceReportPosition performanceReportPosition = new PerformanceReportPosition(); request.bindParameters(performanceReportPosition); return performanceReportPosition.getPerformanceReportPosition(); }
private String getTrendReportFilename(final StaplerRequest request) { PerformanceReportPosition performanceReportPosition = new PerformanceReportPosition(); request.bindParameters(performanceReportPosition); return performanceReportPosition.getPerformanceReportPosition(); } }
@Override public boolean configure(StaplerRequest req, JSONObject formData) throws FormException { req.bindParameters(this, "clover."); save(); return super.configure(req, formData); }
public MavenReporter newInstance(StaplerRequest req, JSONObject formData) throws FormException { MavenMailer m = new MavenMailer(); req.bindParameters(m,"mailer_"); m.dontNotifyEveryUnstableBuild = req.getParameter("mailer_notifyEveryUnstableBuild")==null; return m; } }
@Override public Publisher newInstance(StaplerRequest req, JSONObject formData) { Mailer m = new Mailer(); req.bindParameters(m,"mailer_"); m.dontNotifyEveryUnstableBuild = req.getParameter("mailer_notifyEveryUnstableBuild")==null; if(hudsonUrl==null) { // if Hudson URL is not configured yet, infer some default hudsonUrl = Functions.inferHudsonURL(req); save(); } return m; }
@Override public Publisher newInstance(StaplerRequest req, JSONObject formData) { Mailer m = new Mailer(); req.bindParameters(m,"mailer_"); m.dontNotifyEveryUnstableBuild = req.getParameter("mailer_notifyEveryUnstableBuild")==null; if(hudsonUrl==null) { // if Hudson URL is not configured yet, infer some default hudsonUrl = Functions.inferHudsonURL(req); save(); } return m; }
@Override public Publisher newInstance(StaplerRequest req, JSONObject formData) { Mailer m = new Mailer(); req.bindParameters(m,"mailer_"); m.dontNotifyEveryUnstableBuild = req.getParameter("mailer_notifyEveryUnstableBuild")==null; if(hudsonUrl==null) { // if Hudson URL is not configured yet, infer some default hudsonUrl = Functions.inferHudsonURL(req); save(); } return m; }
@Override public Publisher newInstance(StaplerRequest req, JSONObject formData) { Mailer m = new Mailer(); req.bindParameters(m, "mailer_"); m.dontNotifyEveryUnstableBuild = req.getParameter("mailer_notifyEveryUnstableBuild") == null; if (hudsonUrl == null) { // if Hudson URL is not configured yet, infer some default hudsonUrl = Functions.inferHudsonURL(req); save(); } return m; }