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
.
SCMSource
s 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected static <T> ArrayList<T>
asArrayList
(List<T> list) Utility helper method that ensures you have anArrayList
but avoids copying unless required.final ProjectDecorator
decorator
(AbstractProject project) Deprecated.Deprecated.<P extends Job<P,
B>, B extends Run<P, B>>
JobDecorator<P,B> jobDecorator
(Class<P> clazz) Returns aJobDecorator
for the specific job type.
-
Constructor Details
-
BranchProperty
public BranchProperty()
-
-
Method Details
-
decorator
Deprecated.Returns aProjectDecorator
for the supplied project instance.- Parameters:
project
- the project instance.- Returns:
- a
ProjectDecorator
ornull
if none appropriate to this type of project.
-
decorator
Deprecated.Returns aProjectDecorator
for the specific project type.- Parameters:
clazz
- the project class.- Returns:
- a
ProjectDecorator
ornull
if 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 aJobDecorator
for 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
JobDecorator
ornull
if none appropriate to this type of job.
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<BranchProperty>
- Overrides:
getDescriptor
in classAbstractDescribableImpl<BranchProperty>
-
asArrayList
Utility helper method that ensures you have anArrayList
but avoids copying unless required.
-
Project
andBuild
rather thanAbstractProject
andAbstractBuild
.