@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.Job<?,?> |
job
The source item.
|
boolean |
reset
Follows the progress of the operation
|
| Constructor and Description |
|---|
PurgeJobHistory() |
| Modifier and Type | Method and Description |
|---|---|
String |
getShortDescription() |
static void |
purge(hudson.model.Job<?,?> job,
boolean resetNextBuildNumber)
Deprecated.
|
static void |
purge(hudson.model.Job<?,?> job,
boolean resetNextBuildNumber,
boolean force)
Purges the build history of the specified job.
|
protected int |
run() |
all, checkChannel, clone, createClone, getClientCharset, getClientEnvironmentVariable, getClientSystemProperty, getCmdLineParser, getCurrent, getLongDescription, getName, getSingleLineSummary, getTransportAuthentication, getUsage, loadStoredAuthentication, main, printUsage, printUsageSummary, registerOptionHandlers, setTransportAuth, shouldPerformAuthenticationpublic boolean reset
public boolean force
public hudson.model.Job<?,?> job
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.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.Copyright © 2004-2015. All Rights Reserved.