@Override public SCM newInstance(StaplerRequest staplerRequest, JSONObject jsonObject) throws FormException { return super.newInstance(staplerRequest, jsonObject); }
@Override public SCM newInstance(StaplerRequest staplerRequest, JSONObject jsonObject) throws FormException { return super.newInstance(staplerRequest, jsonObject); }
@Override public SCM newInstance(StaplerRequest staplerRequest, JSONObject jsonObject) throws FormException { return super.newInstance(staplerRequest, jsonObject); }
@Override public SCM newInstance(StaplerRequest req, JSONObject formData) throws FormException { return super.newInstance(req, formData); }
@Override public SCM newInstance(StaplerRequest req, JSONObject formData) throws FormException { return super.newInstance(req, formData); }
public SCM superNewInstance(StaplerRequest req) throws FormException { return super.newInstance(req); }
public SCM superNewInstance(StaplerRequest req, JSONObject formData) throws FormException { return super.newInstance(req, formData); }
@Override public SCM newInstance(StaplerRequest req) throws FormException { initPython(); if (pexec.isImplemented(14)) { return (SCM) pexec.execPython("new_instance", req); } else { return super.newInstance(req); } }
@Override public SCM newInstance(StaplerRequest req, JSONObject formData) throws FormException { initPython(); if (pexec.isImplemented(15)) { return (SCM) pexec.execPython("new_instance", req, formData); } else { return super.newInstance(req, formData); } }
/** * Parses {@link SCM} configuration from the submitted form. * * @param target * The project for which this SCM is configured to. */ public static SCM parseSCM(StaplerRequest req, AbstractProject target) throws FormException, ServletException { String scm = req.getParameter("scm"); if(scm==null) return new NullSCM(); int scmidx = Integer.parseInt(scm); SCMDescriptor<?> d = SCM._for(target).get(scmidx); d.generation++; return d.newInstance(req, req.getSubmittedForm().getJSONObject("scm")); }
/** * Parses {@link SCM} configuration from the submitted form. * * @param target * The project for which this SCM is configured to. */ public static SCM parseSCM(StaplerRequest req, AbstractProject target) throws FormException, ServletException { String scm = req.getParameter("scm"); if(scm==null) return new NullSCM(); int scmidx = Integer.parseInt(scm); SCMDescriptor<?> d = SCM._for(target).get(scmidx); d.generation++; return d.newInstance(req, req.getSubmittedForm().getJSONObject("scm")); }
@Override public SCM newInstance(final StaplerRequest req, final JSONObject formData) throws FormException { TeamFoundationServerScm scm = (TeamFoundationServerScm) super.newInstance(req, formData); scm.repositoryBrowser = RepositoryBrowsers.createInstance(TeamFoundationServerRepositoryBrowser.class, req, formData, "browser"); // TODO: is there a more polymorphic way of doing this? if (scm.credentialsConfigurer instanceof ManualCredentialsConfigurer) { // ManualCredentialsConfigurer has its fields "transient"; transfer the values here // for backward-compatibility final ManualCredentialsConfigurer manualCredentialsConfigurer = (ManualCredentialsConfigurer) scm.credentialsConfigurer; scm.userName = manualCredentialsConfigurer.getUserName(); scm.password = manualCredentialsConfigurer.getPassword(); } return scm; }
/** * Parses {@link SCM} configuration from the submitted form. * * @param target * The project for which this SCM is configured to. */ public static SCM parseSCM(StaplerRequest req, AbstractProject target) throws FormException, ServletException { String scm = req.getParameter("scm"); if(scm==null) return new NullSCM(); int scmidx = Integer.parseInt(scm); SCMDescriptor<?> d = SCM._for(target).get(scmidx); d.generation++; return d.newInstance(req, req.getSubmittedForm().getJSONObject("scm")); }
/** * Parses {@link SCM} configuration from the submitted form. * * @param target The project for which this SCM is configured to. */ public static SCM parseSCM(StaplerRequest req, AbstractProject target) throws FormException, ServletException { String scm = req.getParameter("scm"); if (scm == null) { return new NullSCM(); } int scmidx = Integer.parseInt(scm); SCMDescriptor<?> d = SCM._for(target).get(scmidx); d.generation++; return d.newInstance(req, req.getSubmittedForm().getJSONObject("scm")); }
@Override public SCM newInstance(StaplerRequest req, JSONObject formData) throws FormException { PerforceSCM newInstance = (PerforceSCM)super.newInstance(req, formData); newInstance.setUseViewMask(req.getParameter("p4.useViewMask") != null); newInstance.setViewMask(Util.fixEmptyAndTrim(req.getParameter("p4.viewMask"))); newInstance.setUseViewMaskForPolling(req.getParameter("p4.useViewMaskForPolling") != null); newInstance.setUseViewMaskForSyncing(req.getParameter("p4.useViewMaskForSyncing") != null); return newInstance; }