@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public class DefaultGlobalBuildDiscarderStrategy extends GlobalBuildDiscarderStrategy
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultGlobalBuildDiscarderStrategy.DescriptorImpl |
ExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
DefaultGlobalBuildDiscarderStrategy(BuildDiscarder discarder) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(Job<?,?> job) |
BuildDiscarder |
getDiscarder() |
boolean |
isApplicable(Job<?,?> job)
Checks if the discarder should be applied to the job
|
applygetDescriptor@DataBoundConstructor public DefaultGlobalBuildDiscarderStrategy(BuildDiscarder discarder)
public BuildDiscarder getDiscarder()
public boolean isApplicable(Job<?,?> job)
isApplicable in class GlobalBuildDiscarderStrategyjob - targeted for discardpublic void apply(Job<?,?> job) throws IOException, InterruptedException
apply in class GlobalBuildDiscarderStrategyIOExceptionInterruptedExceptionCopyright © 2016–2021. All rights reserved.