public class PurgeJobHistoryAction extends Object implements Action
Action to allow the user to purge the job history.| Modifier and Type | Class and Description |
|---|---|
static class |
PurgeJobHistoryAction.ActionInjector
Add the action to every job.
|
| Constructor and Description |
|---|
PurgeJobHistoryAction(Job<?,?> job)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.kohsuke.stapler.HttpResponse |
doDoPurge(boolean resetNextBuild,
boolean forceDelete)
Does the actual purging when triggered via the UI.
|
String |
getDisplayName() |
String |
getIconFileName() |
Job<?,?> |
getJob()
Gets the job we are attached to.
|
String |
getUrlName() |
public PurgeJobHistoryAction(Job<?,?> job)
job - the job we are an action for,public Job<?,?> getJob()
public String getIconFileName()
getIconFileName in interface Actionpublic String getDisplayName()
getDisplayName in interface ActiongetDisplayName in interface ModelObjectpublic String getUrlName()
getUrlName in interface Action@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
public org.kohsuke.stapler.HttpResponse doDoPurge(@QueryParameter(value="resetNextBuild")
boolean resetNextBuild,
@QueryParameter(value="forceDelete")
boolean forceDelete)
throws IOException
resetNextBuild - the reset flag.forceDelete - force deleting even runs that have been flagged for retention.IOException - if something goes wrong.Copyright © 2016–2019. All rights reserved.