Package hudson.plugins.robot
Class RobotProjectAction
java.lang.Object
hudson.plugins.robot.RobotProjectAction
- All Implemented Interfaces:
Action
,ModelObject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
doGraph
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) Return robot trend graph in the request.void
doIndex
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) Show Robot html report of the latest build.Return the action of last build associated with robotJob<?,
?> Get associated project.boolean
Returns true if there are any builds in the associated project.
-
Constructor Details
-
RobotProjectAction
Create new Robot project action- Parameters:
project
- Project which this action will be applied to
-
-
Method Details
-
getProject
Get associated project.- Returns:
- the project
-
isDisplayGraph
public boolean isDisplayGraph()Returns true if there are any builds in the associated project.- Returns:
- true if there are any builds in the associated project.
-
getLastBuildAction
Return the action of last build associated with robot- Returns:
- null if action not found or no build
-
doGraph
public void doGraph(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException Return robot trend graph in the request.- Parameters:
req
- StaplerRequestrsp
- StaplerResponse- Throws:
IOException
- thrown exceptionjavax.servlet.ServletException
- thrown exception
-
doIndex
public void doIndex(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException Show Robot html report of the latest build. If no builds are associated with Robot, returns info page.- Parameters:
req
- StaplerRequestrsp
- StaplerResponse- Throws:
IOException
- thrown exception
-
getIconFileName
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
- Specified by:
getUrlName
in interfaceAction
-