@Extension public class PurgeJobHistory extends CLICommand
ExtensionPoint.LegacyInstancesAreScopedToHudson| Modifier and Type | Field and Description |
|---|---|
boolean |
force
Force delete even builds marked to be kept forever.
|
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(Job<?,?> job,
boolean resetNextBuildNumber)
Deprecated.
|
static void |
purge(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, main, printUsage, printUsageSummary, registerOptionHandlers, setClientCharset, setTransportAuth, shouldPerformAuthenticationpublic boolean reset
public boolean force
public Job<?,?> job
public String getShortDescription()
getShortDescription in class CLICommandprotected int run()
throws Exception
run in class CLICommandException@Deprecated public static void purge(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(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 © 2016–2019. All rights reserved.