mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-29 20:45:20 +00:00
supporting filtering for SCMs
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16430 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
903782ce65
commit
5ab7f1a6d0
6 files changed
+63
-4
No files matched your search
@@ -59,6 +59,8 @@ import hudson.tasks.Builder;
|
||||
import hudson.tasks.Publisher;
|
||||
import hudson.util.Area;
|
||||
import hudson.util.Iterators;
|
||||
import hudson.scm.SCM;
|
||||
import hudson.scm.SCMDescriptor;
|
||||
import org.acegisecurity.providers.anonymous.AnonymousAuthenticationToken;
|
||||
import org.apache.commons.jelly.JellyContext;
|
||||
import org.apache.commons.jelly.JellyTagException;
|
||||
@@ -610,6 +612,10 @@ public class Functions {
|
||||
return BuildStepDescriptor.filter(Publisher.all(), project.getClass());
|
||||
}
|
||||
|
||||
public static List<SCMDescriptor<?>> getSCMDescriptors(AbstractProject<?,?> project) {
|
||||
return SCM._for(project);
|
||||
}
|
||||
|
||||
public static List<Descriptor<ComputerLauncher>> getComputerLauncherDescriptors() {
|
||||
return Hudson.getInstance().getDescriptorList(ComputerLauncher.class);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user