public abstract class BranchPropertyStrategyDescriptor extends Descriptor<BranchPropertyStrategy>
Descriptors or BranchPropertyStrategy instances.Descriptor.FormException, Descriptor.PropertyType, Descriptor.Selfclazz| Constructor and Description |
|---|
BranchPropertyStrategyDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
static List<BranchPropertyStrategyDescriptor> |
all()
Gets all the
BranchPropertyStrategyDescriptor instances. |
static List<BranchPropertyStrategyDescriptor> |
all(MultiBranchProject project,
jenkins.scm.api.SCMSourceDescriptor sourceDescriptor)
Gets all the
BranchPropertyStrategyDescriptor instances applicable to the specified project and source. |
boolean |
isApplicable(MultiBranchProject project)
A branch property strategy may not be appropriate for every project, this method lets a strategy
opt out of being selectable for a specific project.
|
protected boolean |
isApplicable(MultiBranchProjectDescriptor projectDescriptor)
Usually a branch property strategy is more concerned with the specific type of project than the specifics of
the project instance.
|
boolean |
isApplicable(jenkins.scm.api.SCMSourceDescriptor sourceDescriptor)
A branch property strategy may not be appropriate for every type of source, this method lets a strategy
opt out of being selectable for a specific source type.
|
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMappublic boolean isApplicable(@NonNull
jenkins.scm.api.SCMSourceDescriptor sourceDescriptor)
sourceDescriptor - the source descriptor.public boolean isApplicable(@NonNull
MultiBranchProject project)
By default it checks isApplicable(MultiBranchProjectDescriptor),
and whether BranchPropertyDescriptor.all(MultiBranchProject) is nonempty
when filtered by DescriptorVisibilityFilter on the project,
which due to BranchPropertyDescriptor.Visibility
also calls BranchPropertyDescriptor.isApplicable(MultiBranchProject).
project - the project.protected boolean isApplicable(@NonNull
MultiBranchProjectDescriptor projectDescriptor)
projectDescriptor - the project type.public static List<BranchPropertyStrategyDescriptor> all()
BranchPropertyStrategyDescriptor instances.BranchPropertyStrategyDescriptor instances.public static List<BranchPropertyStrategyDescriptor> all(@NonNull MultiBranchProject project, @NonNull jenkins.scm.api.SCMSourceDescriptor sourceDescriptor)
BranchPropertyStrategyDescriptor instances applicable to the specified project and source.project - the projectsourceDescriptor - the source.BranchPropertyStrategyDescriptor instances applicable to the specified project and
source.Copyright © 2016–2019. All rights reserved.