@Extension
public class PurgeJobHistory
extends hudson.cli.CLICommand
| Modifier and Type | Field and Description |
|---|---|
boolean |
force
Force delete even builds marked to be kept forever.
|
hudson.model.AbstractItem |
item
The source item.
|
boolean |
recurse
Force delete even builds marked to be kept forever.
|
boolean |
reset
Follows the progress of the operation
|
| Constructor and Description |
|---|
PurgeJobHistory() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkPermission(hudson.model.AbstractItem item) |
String |
getShortDescription() |
void |
purge(hudson.model.AbstractItem item,
boolean reset,
boolean force,
boolean recurse) |
void |
purge(boolean reset,
boolean force,
boolean recurse) |
static void |
purge(hudson.model.Job<?,?> job,
boolean resetNextBuildNumber)
Deprecated.
|
static void |
purge(hudson.model.Job<?,?> job,
boolean resetNextBuildNumber,
boolean force)
Deprecated.
|
protected int |
run() |
all, checkChannel, clone, createClone, getClientCharset, getClientEnvironmentVariable, getClientSystemProperty, getCmdLineParser, getCurrent, getLongDescription, getName, getSingleLineSummary, getTransportAuthentication, getUsage, main, printUsage, printUsageSummary, registerOptionHandlers, setClientCharset, setTransportAuth, shouldPerformAuthenticationpublic boolean reset
public boolean force
public boolean recurse
public hudson.model.AbstractItem item
public String getShortDescription()
getShortDescription in class hudson.cli.CLICommandprotected int run()
throws Exception
run in class hudson.cli.CLICommandException@Deprecated public static void purge(hudson.model.Job<?,?> job, boolean resetNextBuildNumber) throws IOException
purge(Job, boolean, boolean)job - the job to purgeresetNextBuildNumber - true if the next build number should be reset to 1 after the purgeIOException - if something went wrong.@Deprecated public static void purge(hudson.model.Job<?,?> job, boolean resetNextBuildNumber, boolean force) throws IOException
job - the job to purgeresetNextBuildNumber - true if the next build number should be reset to 1 after the purgeforce - true to delete even builds marked to be kept foreverIOException - if something went wrong.public void purge(boolean reset,
boolean force,
boolean recurse)
throws IOException
IOExceptionpublic void purge(hudson.model.AbstractItem item,
boolean reset,
boolean force,
boolean recurse)
throws IOException
IOExceptionpublic boolean checkPermission(hudson.model.AbstractItem item)
Copyright © 2016–2020. All rights reserved.