public static List<SCMDescriptor<?>> getSCMDescriptors(AbstractProject<?,?> project) { return SCM._for(project); }
@Deprecated public static List<SCMDescriptor<?>> _for(final AbstractProject project) { return _for((Job) project); }
public static List<SCMDescriptor<?>> getSCMDescriptors(AbstractProject<?,?> project) { return SCM._for(project); }
public static List<SCMDescriptor<?>> getSCMDescriptors(AbstractProject<?, ?> project) { return SCM._for(project); }
public static List<SCMDescriptor<?>> getSCMDescriptors(AbstractProject<?,?> project) { return SCM._for(project); }
public static List<SCMDescriptor<?>> getSCMDescriptors(AbstractProject<?,?> project) { return SCM._for(project); }
public static List<SCMDescriptor<?>> getSCMDescriptors(AbstractProject<?,?> project) { return SCM._for(project); }
@Deprecated public static List<SCMDescriptor<?>> _for(final AbstractProject project) { return _for((Job) project); }
public List<SCMDescriptor<?>> getApplicableSCMs(AbstractProject<?, ?> project) { List<SCMDescriptor<?>> scms = new ArrayList<SCMDescriptor<?>>(); for(SCMDescriptor<?> scm : SCM._for(project)) { // Filter MultiSCM itself from the list of choices. // Theoretically it might work, but I see no practical reason to allow // nested MultiSCM configurations. if(!(scm instanceof DescriptorImpl) && !(scm instanceof NullSCM.DescriptorImpl)) scms.add(scm); } return scms; }
public Collection<? extends SCMDescriptor<?>> getApplicableDescriptors() { return SCM._for(StaplerReferer.findItemFromRequest(Job.class)); }
public Collection<? extends SCMDescriptor<?>> getApplicableDescriptors() { StaplerRequest req = Stapler.getCurrentRequest(); Job<?,?> job = req != null ? req.findAncestorObject(Job.class) : null; return SCM._for(job); }
/** * 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")); }
/** * 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")); }