Package jenkins.plugins.purgejobhistory
Class PurgeJobHistory
java.lang.Object
hudson.cli.CLICommand
jenkins.plugins.purgejobhistory.PurgeJobHistory
- All Implemented Interfaces:
ExtensionPoint,Cloneable
- Author:
- Stephen Connolly
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanForce delete even builds marked to be kept forever.The source item.booleanForce delete even builds marked to be kept forever.booleanFollows the progress of the operationFields inherited from class hudson.cli.CLICommand
ALLOW_AT_SYNTAX, channel, locale, stderr, stdin, stdout -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckPermission(AbstractItem item) voidpurge(boolean reset, boolean force, boolean recurse) voidpurge(AbstractItem item, boolean reset, boolean force, boolean recurse) static voidDeprecated.static voidDeprecated.protected intrun()Methods inherited from class hudson.cli.CLICommand
all, checkChannel, clone, createClone, getClientCharset, getClientEnvironmentVariable, getClientSystemProperty, getCmdLineParser, getCurrent, getLongDescription, getName, getSingleLineSummary, getTransportAuthentication, getTransportAuthentication2, getUsage, main, printUsage, printUsageSummary, registerOptionHandlers, setClientCharset, setTransportAuth, setTransportAuth2
-
Field Details
-
reset
public boolean resetFollows the progress of the operation -
force
public boolean forceForce delete even builds marked to be kept forever.- Since:
- 1.1
-
recurse
public boolean recurseForce delete even builds marked to be kept forever.- Since:
- 1.1
-
item
The source item.
-
-
Constructor Details
-
PurgeJobHistory
public PurgeJobHistory()
-
-
Method Details
-
getShortDescription
- Specified by:
getShortDescriptionin classCLICommand
-
run
- Specified by:
runin classCLICommand- Throws:
Exception
-
purge
Deprecated.Purges the build history of the specified job.- Parameters:
job- the job to purgeresetNextBuildNumber-trueif the next build number should be reset to1after the purge- Throws:
IOException- if something went wrong.
-
purge
@Deprecated public static void purge(Job<?, ?> job, boolean resetNextBuildNumber, boolean force) throws IOExceptionDeprecated.Purges the build history of the specified job.- Parameters:
job- the job to purgeresetNextBuildNumber-trueif the next build number should be reset to1after the purgeforce-trueto delete even builds marked to be kept forever- Throws:
IOException- if something went wrong.- Since:
- 1.1
-
purge
- Throws:
IOException
-
purge
public void purge(AbstractItem item, boolean reset, boolean force, boolean recurse) throws IOException - Throws:
IOException
-
checkPermission
-
purge(Job, boolean, boolean)