Class DurabilityHintBranchProperty
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<jenkins.branch.BranchProperty>
-
- jenkins.branch.BranchProperty
-
- org.jenkinsci.plugins.workflow.multibranch.DurabilityHintBranchProperty
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<jenkins.branch.BranchProperty>
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class DurabilityHintBranchProperty extends jenkins.branch.BranchProperty
Branch property so we can define per-branch durability policies, i.e. so feature branches aren't built durably but master is. Also lets us set the durability level before the pipeline has run (a step ahead of the "properties" step). This implementation is designed so that each build will freshly evaluate theFlowDurabilityHint
provided byBranchPropertyStrategy
thus sidestepping issues with failing to update along with the BranchPropertyStrategy (JENKINS-48826).- Author:
- Sam Van Oort
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DurabilityHintBranchProperty.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description DurabilityHintBranchProperty(org.jenkinsci.plugins.workflow.flow.FlowDurabilityHint hint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jenkinsci.plugins.workflow.flow.FlowDurabilityHint
getHint()
<P extends Job<P,B>,B extends Run<P,B>>
jenkins.branch.JobDecorator<P,B>jobDecorator(Class<P> clazz)
No-op impl because we only care about the actual BranchProperty attached.
-