public abstract static class MultiBranchProjectFactory.BySCMSourceCriteria extends MultiBranchProjectFactory
SCMHead satisfies a probe.MultiBranchProjectFactory.BySCMSourceCriteriaExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
BySCMSourceCriteria() |
| Modifier and Type | Method and Description |
|---|---|
MultiBranchProject<?,?> |
createNewProject(ItemGroup<?> parent,
String name,
List<? extends jenkins.scm.api.SCMSource> scmSources,
Map<String,Object> attributes,
TaskListener listener)
|
protected abstract MultiBranchProject<?,?> |
doCreateProject(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(ItemGroup<?> parent,
String name,
List<? extends jenkins.scm.api.SCMSource> scmSources,
Map<String,Object> attributes,
jenkins.scm.api.SCMHeadEvent<?> event,
TaskListener listener)
Determines whether this factory recognizes a given configuration scoped to a specific
SCMHeadEvent. |
boolean |
recognizes(ItemGroup<?> parent,
String name,
List<? extends jenkins.scm.api.SCMSource> scmSources,
Map<String,Object> attributes,
TaskListener listener)
Determines whether this factory recognizes a given configuration.
|
createProject, getDescriptor, updateExistingProject@CheckForNull protected abstract jenkins.scm.api.SCMSourceCriteria getSCMSourceCriteria(@NonNull jenkins.scm.api.SCMSource source)
source - a repositorynull if all branches match)@NonNull protected abstract MultiBranchProject<?,?> doCreateProject(@NonNull ItemGroup<?> parent, @NonNull String name, @NonNull Map<String,Object> attributes) throws IOException, InterruptedException
createNewProject(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).parent - a foldername - a project name
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)MultiBranchProject.getSourcesList() or call ComputedFolder.onCreatedFromScratch())InterruptedException - if interrupted.IOException - if there was an IO error.public final MultiBranchProject<?,?> createNewProject(@NonNull ItemGroup<?> parent, @NonNull String name, @NonNull List<? extends jenkins.scm.api.SCMSource> scmSources, @NonNull Map<String,Object> attributes, @NonNull TaskListener listener) throws IOException, InterruptedException
MultiBranchProjectFactory.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 ComputedFolder.onCreatedFromScratch())IOException - if there was an IO error.InterruptedException - if interrupted.public boolean recognizes(@NonNull
ItemGroup<?> parent,
@NonNull
String name,
@NonNull
List<? extends jenkins.scm.api.SCMSource> scmSources,
@NonNull
Map<String,Object> attributes,
@NonNull
TaskListener listener)
throws IOException,
InterruptedException
recognizes 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 progressIOException - if there was an IO error.InterruptedException - if interrupted.public boolean recognizes(@NonNull
ItemGroup<?> parent,
@NonNull
String name,
@NonNull
List<? extends jenkins.scm.api.SCMSource> scmSources,
@NonNull
Map<String,Object> attributes,
@CheckForNull
jenkins.scm.api.SCMHeadEvent<?> event,
@NonNull
TaskListener listener)
throws IOException,
InterruptedException
SCMHeadEvent.recognizes 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)event - the SCMHeadEvent that the recognition test should be restricted to.listener - a way of reporting progressIOException - if there was an IO error.InterruptedException - if interrupted.Copyright © 2016–2019. All rights reserved.