Class BuildNumberPolicy
- java.lang.Object
-
- org.jenkins_ci.plugins.build_keeper.BuildKeeperPolicy
-
- org.jenkins_ci.plugins.build_keeper.PeriodAndFailedPolicy
-
- org.jenkins_ci.plugins.build_keeper.BuildNumberPolicy
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<BuildKeeperPolicy>
public class BuildNumberPolicy extends PeriodAndFailedPolicy
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BuildNumberPolicy.BuildNumberPolicyDescriptor
-
Nested classes/interfaces inherited from class org.jenkins_ci.plugins.build_keeper.PeriodAndFailedPolicy
PeriodAndFailedPolicy.PeriodAndFailedPolicyDescriptor
-
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 BuildNumberPolicy(int buildPeriod, boolean dontKeepFailed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(AbstractBuild build, BuildListener listener)
-
Methods inherited from class org.jenkins_ci.plugins.build_keeper.PeriodAndFailedPolicy
getBuildPeriod, isDontKeepFailed, isKeepFailed
-
Methods inherited from class org.jenkins_ci.plugins.build_keeper.BuildKeeperPolicy
all, getDescriptor
-
-
-
-
Method Detail
-
apply
public void apply(AbstractBuild build, BuildListener listener) throws IOException
- Specified by:
apply
in classBuildKeeperPolicy
- Throws:
IOException
-
-