public abstract class MultiBranchProjectDescriptor
extends com.cloudbees.hudson.plugins.folder.AbstractFolderDescriptor
The Descriptor for MultiBranchProjects.
Compatible SCMs displayed by SingleSCMSource (via their
SCMDescriptor) can be defined by overriding TopLevelItemDescriptor.isApplicable(Descriptor):
@Override
public boolean isApplicable(Descriptor descriptor) {
if (descriptor instanceof SCMDescriptor) {
SCMDescriptor d = (SCMDescriptor) descriptor;
// Your logic
}
return super.isApplicable(descriptor);
}
| Constructor and Description |
|---|
MultiBranchProjectDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
hudson.model.Descriptor<BranchSource> |
getBranchSourceDescriptor()
Returns the
BranchSource.DescriptorImpl. |
Class<? extends MultiBranchProject> |
getClazz()
We have to extend
TopLevelItemDescriptor but we want to be able to access Descriptor.clazz as a
MultiBranchProject based type. |
List<BranchProjectFactoryDescriptor> |
getProjectFactoryDescriptors()
Returns the
BranchProjectFactoryDescriptors. |
List<jenkins.scm.api.SCMSourceDescriptor> |
getSCMSourceDescriptors(boolean onlyUserInstantiable)
Gets the
SCMSourceDescriptors. |
getCategoryId, getDisplayName, getHealthMetricDescriptors, getPropertyDescriptorsall, checkApplicableIn, isApplicable, isApplicableIn, newInstance, newInstance, newInstance, testInstanceaddHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap@NonNull public Class<? extends MultiBranchProject> getClazz()
TopLevelItemDescriptor but we want to be able to access Descriptor.clazz as a
MultiBranchProject based type.Descriptor.clazz@NonNull public List<jenkins.scm.api.SCMSourceDescriptor> getSCMSourceDescriptors(boolean onlyUserInstantiable)
SCMSourceDescriptors.onlyUserInstantiable - true retains only those SCMSource types that
are instantiable by the user.SCMSourceDescriptors.@NonNull public List<BranchProjectFactoryDescriptor> getProjectFactoryDescriptors()
BranchProjectFactoryDescriptors.BranchProjectFactoryDescriptors.@NonNull public hudson.model.Descriptor<BranchSource> getBranchSourceDescriptor()
BranchSource.DescriptorImpl.BranchSource.DescriptorImpl.Copyright © 2016. All rights reserved.