public class BuildRotator
extends jenkins.model.BuildDiscarder
BuildRotator is memory footprint friendly replacement for LogRotator.
It doesn't calculate a real number of builds in history (this was implemented to reduce memory consumption).
It assumes that every build with build number smaller then
("last build number" - "number of builds it should keep") could be removed.
There is no difference how BuildRotator removes builds based on days limit.| Modifier and Type | Class and Description |
|---|---|
static class |
BuildRotator.LRDescriptor |
| Constructor and Description |
|---|
BuildRotator(int daysToKeep,
int numToKeep,
int artifactsDaysToKeep,
int artifactsNumToKeep) |
| Modifier and Type | Method and Description |
|---|---|
int |
getArtifactsDaysToKeep() |
int |
getArtifactsNumToKeep() |
int |
getDaysToKeep() |
int |
getNumToKeep() |
void |
perform(hudson.model.Job<?,?> job) |
@DataBoundConstructor
public BuildRotator(int daysToKeep,
int numToKeep,
int artifactsDaysToKeep,
int artifactsNumToKeep)
public int getArtifactsDaysToKeep()
public int getArtifactsNumToKeep()
public int getDaysToKeep()
public int getNumToKeep()
public void perform(hudson.model.Job<?,?> job)
throws IOException,
InterruptedException
perform in class jenkins.model.BuildDiscarderIOExceptionInterruptedExceptionCopyright © 2016. All rights reserved.