public class DefaultDeadBranchStrategy extends DeadBranchStrategy
DeadBranchStrategy.| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultDeadBranchStrategy.DescriptorImpl
Our
Descriptor |
| Constructor and Description |
|---|
DefaultDeadBranchStrategy()
Default constructor for new
MultiBranchProject instances. |
DefaultDeadBranchStrategy(boolean pruneDeadBranches,
String daysToKeepStr,
String numToKeepStr)
Stapler's constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDaysToKeep()
Gets the number of days to keep dead branches.
|
String |
getDaysToKeepStr()
Returns the number of days to keep dead branches.
|
int |
getNumToKeep()
Gets the number of dead branches to keep.
|
String |
getNumToKeepStr()
Gets the number of dead branches to keep.
|
boolean |
isPruneDeadBranches()
Returns
true if dead branches should be removed. |
<P extends hudson.model.AbstractProject<P,R> & hudson.model.TopLevelItem,R extends hudson.model.AbstractBuild<P,R>> |
runDeadBranchCleanup(hudson.model.TaskListener listener,
Map<String,P> deadBranches) |
void |
setOwner(MultiBranchProject<?,?> owner)
Called by
MultiBranchProject to set the owner once the source is attached to the project. |
getDescriptor, getOwnerpublic DefaultDeadBranchStrategy()
MultiBranchProject instances.@DataBoundConstructor
public DefaultDeadBranchStrategy(boolean pruneDeadBranches,
@CheckForNull
String daysToKeepStr,
@CheckForNull
String numToKeepStr)
pruneDeadBranches - remove dead branches.daysToKeepStr - how old a branch must be to remove.numToKeepStr - how many branches to keep.public void setOwner(MultiBranchProject<?,?> owner)
MultiBranchProject to set the owner once the source is attached to the project.setOwner in class DeadBranchStrategyowner - the owner.public int getDaysToKeep()
public int getNumToKeep()
public boolean isPruneDeadBranches()
true if dead branches should be removed.true if dead branches should be removed.@NonNull public String getDaysToKeepStr()
@NonNull public String getNumToKeepStr()
public <P extends hudson.model.AbstractProject<P,R> & hudson.model.TopLevelItem,R extends hudson.model.AbstractBuild<P,R>> void runDeadBranchCleanup(hudson.model.TaskListener listener,
Map<String,P> deadBranches)
throws IOException,
InterruptedException
runDeadBranchCleanup in class DeadBranchStrategyIOExceptionInterruptedExceptionCopyright © 2004-2013. All Rights Reserved.