Class DefaultGlobalBuildDiscarderStrategy
java.lang.Object
hudson.model.AbstractDescribableImpl<GlobalBuildDiscarderStrategy>
jenkins.model.GlobalBuildDiscarderStrategy
io.jenkins.plugins.builddiscarders.DefaultGlobalBuildDiscarderStrategy
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalBuildDiscarderStrategy>
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class DefaultGlobalBuildDiscarderStrategy
extends GlobalBuildDiscarderStrategy
Apply a user-specified build discarder periodically on all jobs.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
isApplicable
(Job<?, ?> job) Checks if the discarder should be applied to the jobMethods inherited from class jenkins.model.GlobalBuildDiscarderStrategy
apply
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
DefaultGlobalBuildDiscarderStrategy
-
-
Method Details
-
getDiscarder
-
isApplicable
Checks if the discarder should be applied to the job- Specified by:
isApplicable
in classGlobalBuildDiscarderStrategy
- Parameters:
job
- targeted for discard- Returns:
- applicable for jobs without a specified build discarder
-
apply
- Overrides:
apply
in classGlobalBuildDiscarderStrategy
- Throws:
IOException
InterruptedException
-