T - type of the resultspublic abstract class JobAction<T extends BuildAction<?>> extends Object implements Action
BuildAction with a corresponding result). This action also is responsible to render the historical trend via
its associated 'floatingBox.jelly' view.| Modifier | Constructor and Description |
|---|---|
protected |
JobAction(Job<?,?> owner,
Class<T> buildActionClass)
Creates a new instance of
JobAction. |
| Modifier and Type | Method and Description |
|---|---|
void |
doIndex(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Redirects the index page to the last result.
|
protected Class<T> |
getBuildActionClass() |
Optional<T> |
getLatestAction()
Returns the latest results for this job.
|
Job<?,?> |
getOwner()
Returns the job this action belongs to.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDisplayName, getIconFileName, getUrlNamepublic Job<?,?> getOwner()
public void doIndex(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws IOException
request - Stapler requestresponse - Stapler responseIOException - in case of an errorCopyright © 2016–2020. All rights reserved.