Package jenkins.branch
Class BranchProperty
- All Implemented Interfaces:
ExtensionPoint,Describable<BranchProperty>
- Direct Known Subclasses:
BuildRetentionBranchProperty,NoTriggerBranchProperty,ParameterDefinitionBranchProperty,RateLimitBranchProperty,UntrustedBranchProperty
public abstract class BranchProperty
extends AbstractDescribableImpl<BranchProperty>
implements ExtensionPoint
Additional information associated with
Branch.
SCMSources can use properties to convey additional implementation/SCM specific
information that's not captured in the base Branch class.
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static <T> ArrayList<T>asArrayList(List<T> list) Utility helper method that ensures you have anArrayListbut avoids copying unless required.final ProjectDecoratordecorator(AbstractProject project) Deprecated.Deprecated.<P extends Job<P,B>, B extends Run<P, B>>
JobDecorator<P,B> jobDecorator(Class<P> clazz) Returns aJobDecoratorfor the specific job type.
-
Constructor Details
-
BranchProperty
public BranchProperty()
-
-
Method Details
-
decorator
Deprecated.Returns aProjectDecoratorfor the supplied project instance.- Parameters:
project- the project instance.- Returns:
- a
ProjectDecoratorornullif none appropriate to this type of project.
-
decorator
Deprecated.Returns aProjectDecoratorfor the specific project type.- Parameters:
clazz- the project class.- Returns:
- a
ProjectDecoratorornullif none appropriate to this type of project.
-
jobDecorator
@CheckForNull public <P extends Job<P,B>, JobDecorator<P,B extends Run<P, B>> B> jobDecorator(Class<P> clazz) Returns aJobDecoratorfor the specific job type.- Type Parameters:
P- the type of job.B- the type of run of the job.- Parameters:
clazz- the job class.- Returns:
- a
JobDecoratorornullif none appropriate to this type of job.
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<BranchProperty>- Overrides:
getDescriptorin classAbstractDescribableImpl<BranchProperty>
-
asArrayList
Utility helper method that ensures you have anArrayListbut avoids copying unless required.
-
ProjectandBuildrather thanAbstractProjectandAbstractBuild.