Class DiscardOldBranchTrait
java.lang.Object
hudson.model.AbstractDescribableImpl<T>
jenkins.scm.api.trait.SCMTrait<jenkins.scm.api.trait.SCMSourceTrait>
jenkins.scm.api.trait.SCMSourceTrait
com.cloudbees.jenkins.plugins.bitbucket.trait.DiscardOldBranchTrait
- All Implemented Interfaces:
ExtensionPoint
,Describable<jenkins.scm.api.trait.SCMSourceTrait>
public class DiscardOldBranchTrait
extends jenkins.scm.api.trait.SCMSourceTrait
Discard all branches with head commit older than the configured days.
- Since:
- 933.3.0
- Author:
- Nikolas Falco
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Our descriptor.final class
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
decorateContext
(jenkins.scm.api.trait.SCMSourceContext<?, ?> context) int
Methods inherited from class jenkins.scm.api.trait.SCMSourceTrait
_for, _for, all, applyToBuilder, applyToContext, applyToObserver, decorateBuilder, decorateObserver, getDescriptor, includeCategory, isCategoryEnabled
Methods inherited from class jenkins.scm.api.trait.SCMTrait
asSetList, asSetList, find
-
Constructor Details
-
DiscardOldBranchTrait
@DataBoundConstructor public DiscardOldBranchTrait(@CheckForNull int keepForDays)
-
-
Method Details
-
getKeepForDays
public int getKeepForDays() -
decorateContext
protected void decorateContext(jenkins.scm.api.trait.SCMSourceContext<?, ?> context) - Overrides:
decorateContext
in classjenkins.scm.api.trait.SCMSourceTrait
-