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:
  • 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 class jenkins.scm.api.trait.SCMSourceTrait