Package jenkins.model
Class GlobalBuildDiscarderStrategy
java.lang.Object
hudson.model.AbstractDescribableImpl<GlobalBuildDiscarderStrategy>
jenkins.model.GlobalBuildDiscarderStrategy
- All Implemented Interfaces:
 ExtensionPoint,Describable<GlobalBuildDiscarderStrategy>
- Direct Known Subclasses:
 JobGlobalBuildDiscarderStrategy,SimpleGlobalBuildDiscarderStrategy
public abstract class GlobalBuildDiscarderStrategy
extends AbstractDescribableImpl<GlobalBuildDiscarderStrategy>
implements ExtensionPoint
Extension point for global background build discarders.
- 
Nested Class Summary
Nested 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.voidApplies this build discarder strategy to the given run, i.e.abstract booleanisApplicable(Job<?, ?> job) Returns true if and only if this strategy applies to the given job.Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor 
- 
Constructor Details
- 
GlobalBuildDiscarderStrategy
public GlobalBuildDiscarderStrategy() 
 - 
 - 
Method Details
- 
isApplicable
Returns true if and only if this strategy applies to the given job.- Returns:
 - true if and only if this strategy applies to the given job.
 
 - 
apply
Applies this build discarder strategy to the given job, i.e. delete builds based on this strategy's configuration. The default implementation callsapply(Run)on each build.- Throws:
 IOExceptionInterruptedException
 - 
apply
Applies this build discarder strategy to the given run, i.e. delete builds based on this strategy's configuration.- Throws:
 IOExceptionInterruptedException
 
 -