public abstract static class MultiBranchProjectFactory.BySCMSourceCriteria extends MultiBranchProjectFactory
SCMHead satisfies a probe.MultiBranchProjectFactory.BySCMSourceCriteria| Constructor and Description |
|---|
BySCMSourceCriteria() |
| Modifier and Type | Method and Description |
|---|---|
MultiBranchProject<?,?> |
createNewProject(hudson.model.ItemGroup<?> parent,
String name,
List<? extends jenkins.scm.api.SCMSource> scmSources,
Map<String,Object> attributes,
hudson.model.TaskListener listener)
|
protected abstract MultiBranchProject<?,?> |
doCreateProject(hudson.model.ItemGroup<?> parent,
String name,
Map<String,Object> attributes)
|
protected abstract jenkins.scm.api.SCMSourceCriteria |
getSCMSourceCriteria(jenkins.scm.api.SCMSource source)
Defines how to decide whether or not a given repository should host our type of project.
|
boolean |
recognizes(hudson.model.ItemGroup<?> parent,
String name,
List<? extends jenkins.scm.api.SCMSource> scmSources,
Map<String,Object> attributes,
hudson.model.TaskListener listener)
Determines whether this factory recognizes a given configuration.
|
createProject, getDescriptor, updateExistingProject@Nonnull protected abstract jenkins.scm.api.SCMSourceCriteria getSCMSourceCriteria(@Nonnull jenkins.scm.api.SCMSource source)
source - a repository@Nonnull protected abstract MultiBranchProject<?,?> doCreateProject(@Nonnull hudson.model.ItemGroup<?> parent, @Nonnull String name, @Nonnull Map<String,Object> attributes)
public final MultiBranchProject<?,?> createNewProject(hudson.model.ItemGroup<?> parent, String name, List<? extends jenkins.scm.api.SCMSource> scmSources, Map<String,Object> attributes, hudson.model.TaskListener listener) throws IOException, InterruptedException
MultiBranchProjectFactoryMultiBranchProjectFactory.recognizes(hudson.model.ItemGroup<?>, java.lang.String, java.util.List<? extends jenkins.scm.api.SCMSource>, java.util.Map<java.lang.String, java.lang.Object>, hudson.model.TaskListener).createNewProject in class MultiBranchProjectFactoryparent - a foldername - a project namescmSources - a set of SCM sources as added by SCMSourceObserver.ProjectObserver.addSource(jenkins.scm.api.SCMSource)attributes - a set of metadata attributes as added by SCMSourceObserver.ProjectObserver.addAttribute(java.lang.String, java.lang.Object)listener - a way of reporting progressMultiBranchProject.getSourcesList() or call AbstractItem.onCreatedFromScratch())IOExceptionInterruptedExceptionpublic boolean recognizes(hudson.model.ItemGroup<?> parent,
String name,
List<? extends jenkins.scm.api.SCMSource> scmSources,
Map<String,Object> attributes,
hudson.model.TaskListener listener)
throws IOException,
InterruptedException
MultiBranchProjectFactoryrecognizes in class MultiBranchProjectFactoryparent - a foldername - a project namescmSources - a set of SCM sources as added by SCMSourceObserver.ProjectObserver.addSource(jenkins.scm.api.SCMSource)attributes - a set of metadata attributes as added by SCMSourceObserver.ProjectObserver.addAttribute(java.lang.String, java.lang.Object)listener - a way of reporting progressIOExceptionInterruptedExceptionCopyright © 2016. All rights reserved.