Class KeepFirstFailedPolicy
- java.lang.Object
-
- org.jenkins_ci.plugins.build_keeper.BuildKeeperPolicy
-
- org.jenkins_ci.plugins.build_keeper.KeepFirstFailedPolicy
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<BuildKeeperPolicy>
public class KeepFirstFailedPolicy extends BuildKeeperPolicy
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KeepFirstFailedPolicy.KeepFirstFailedPolicyDescriptor
-
Nested classes/interfaces inherited from class org.jenkins_ci.plugins.build_keeper.BuildKeeperPolicy
BuildKeeperPolicy.BuildKeeperPolicyDescriptor
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description KeepFirstFailedPolicy(int numberOfFails)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(AbstractBuild build, BuildListener listener)
int
getNumberOfFails()
-
Methods inherited from class org.jenkins_ci.plugins.build_keeper.BuildKeeperPolicy
all, getDescriptor
-
-
-
-
Method Detail
-
getNumberOfFails
public int getNumberOfFails()
-
apply
public void apply(AbstractBuild build, BuildListener listener) throws IOException
- Specified by:
apply
in classBuildKeeperPolicy
- Throws:
IOException
-
-