Package jenkins.model
Class JobGlobalBuildDiscarderStrategy
java.lang.Object
hudson.model.AbstractDescribableImpl<GlobalBuildDiscarderStrategy>
jenkins.model.GlobalBuildDiscarderStrategy
jenkins.model.JobGlobalBuildDiscarderStrategy
- All Implemented Interfaces:
ExtensionPoint,Describable<GlobalBuildDiscarderStrategy>
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class JobGlobalBuildDiscarderStrategy
extends GlobalBuildDiscarderStrategy
Periodically call a job's configured build discarder in the background.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidApplies this build discarder strategy to the given job, i.e.booleanisApplicable(Job<?, ?> job) Returns true if and only if this strategy applies to the given job.Methods inherited from class jenkins.model.GlobalBuildDiscarderStrategy
applyMethods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
JobGlobalBuildDiscarderStrategy
@DataBoundConstructor public JobGlobalBuildDiscarderStrategy()
-
-
Method Details
-
isApplicable
Description copied from class:GlobalBuildDiscarderStrategyReturns true if and only if this strategy applies to the given job.- Specified by:
isApplicablein classGlobalBuildDiscarderStrategy- Returns:
- true if and only if this strategy applies to the given job.
-
apply
Description copied from class:GlobalBuildDiscarderStrategyApplies this build discarder strategy to the given job, i.e. delete builds based on this strategy's configuration. The default implementation callsGlobalBuildDiscarderStrategy.apply(Run)on each build.- Overrides:
applyin classGlobalBuildDiscarderStrategy- Throws:
IOExceptionInterruptedException
-