Package io.jenkins.plugins.util
Klasse JobAction<T extends BuildAction<?>>
java.lang.Object
io.jenkins.plugins.util.JobAction<T>
- Typparameter:
T
- type of the results
- Alle implementierten Schnittstellen:
Action
,ModelObject
A job action displays a link on the side panel of a job that refers to the last build that contains results (i.e. a
BuildAction
with a corresponding result). This action also is responsible to render the historical trend via
its associated 'floatingBox.jelly' view.- Autor:
- Ullrich Hafner
-
Konstruktordetails
-
JobAction
Creates a new instance ofJobAction
.- Parameter:
owner
- the job that owns this actionbuildActionClass
- the type of the action to find
-
-
Methodendetails
-
getOwner
Returns the job this action belongs to.- Gibt zurück:
- the job
-
getBuildActionClass
-
doIndex
public void doIndex(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws IOException Redirects the index page to the last result.- Parameter:
request
- Stapler requestresponse
- Stapler response- Löst aus:
IOException
- in case of an error
-
getLatestAction
Returns the latest results for this job.- Gibt zurück:
- the latest results (if available)
-