@Extension
public class PurgeJobHistory
extends hudson.cli.CLICommand
| Modifier and Type | Field and Description |
|---|---|
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)
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 hudson.model.Job<?,?> job
public String getShortDescription()
getShortDescription in class hudson.cli.CLICommandprotected int run()
throws Exception
run in class hudson.cli.CLICommandExceptionpublic static void purge(hudson.model.Job<?,?> job,
boolean resetNextBuildNumber)
throws IOException
job - the job to purgeresetNextBuildNumber - true if the next build number should be reset to 1 after the purgeIOException - if something went wrong.Copyright © 2004-2015. All Rights Reserved.