Package jenkins.model
Class GlobalBuildDiscarderStrategy
java.lang.Object
jenkins.model.GlobalBuildDiscarderStrategy
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalBuildDiscarderStrategy>
- Direct Known Subclasses:
JobGlobalBuildDiscarderStrategy
,SimpleGlobalBuildDiscarderStrategy
public abstract class GlobalBuildDiscarderStrategy
extends Object
implements Describable<GlobalBuildDiscarderStrategy>, 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 TypeMethodDescriptionvoid
Applies this build discarder strategy to the given job, i.e.void
Applies this build discarder strategy to the given run, i.e.abstract boolean
isApplicable
(Job<?, ?> job) Returns true if and only if this strategy applies to the given job.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hudson.model.Describable
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:
IOException
InterruptedException
-
apply
Applies this build discarder strategy to the given run, i.e. delete builds based on this strategy's configuration.- Throws:
IOException
InterruptedException
-