Package jenkins.branch
Class BuildRetentionBranchProperty
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<BranchProperty>
-
- jenkins.branch.BranchProperty
-
- jenkins.branch.BuildRetentionBranchProperty
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<BranchProperty>
public class BuildRetentionBranchProperty extends BranchProperty
- Author:
- Stephen Connolly
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BuildRetentionBranchProperty.DescriptorImpl
OurDescriptor
.-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description BuildRetentionBranchProperty(BuildDiscarder buildDiscarder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BuildDiscarder
getBuildDiscarder()
<P extends Job<P,B>,B extends Run<P,B>>
JobDecorator<P,B>jobDecorator(Class<P> jobType)
Returns aJobDecorator
for the specific job type.-
Methods inherited from class jenkins.branch.BranchProperty
asArrayList, decorator, decorator, getDescriptor
-
-
-
-
Constructor Detail
-
BuildRetentionBranchProperty
@DataBoundConstructor public BuildRetentionBranchProperty(BuildDiscarder buildDiscarder)
-
-
Method Detail
-
getBuildDiscarder
public BuildDiscarder getBuildDiscarder()
-
jobDecorator
public <P extends Job<P,B>,B extends Run<P,B>> JobDecorator<P,B> jobDecorator(Class<P> jobType)
Description copied from class:BranchProperty
Returns aJobDecorator
for the specific job type.- Overrides:
jobDecorator
in classBranchProperty
- Type Parameters:
P
- the type of job.B
- the type of run of the job.- Parameters:
jobType
- the job class.- Returns:
- a
JobDecorator
ornull
if none appropriate to this type of job.
-
-