public abstract class GlobalBuildDiscarderStrategy extends AbstractDescribableImpl<GlobalBuildDiscarderStrategy> implements ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
GlobalBuildDiscarderStrategy() |
Modifier and Type | Method and Description |
---|---|
void |
apply(Job<? extends Job,? extends Run> job)
Applies this build discarder strategy to the given job, i.e.
|
void |
apply(Run<?,?> run)
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.
|
getDescriptor
public abstract boolean isApplicable(Job<?,?> job)
job
- public void apply(Job<? extends Job,? extends Run> job) throws IOException, InterruptedException
apply(Run)
on each build.job
- IOException
InterruptedException
public void apply(Run<?,?> run) throws IOException, InterruptedException
run
- IOException
InterruptedException
Copyright © 2004–2021. All rights reserved.