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 TypeMethodDescriptionvoiddoGraph(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Return robot trend graph in the request.voiddoIndex(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Show Robot html report of the latest build.Return the action of last build associated with robotJob<?,?> Get associated project.booleanReturns 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.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, jakarta.servlet.ServletException Return robot trend graph in the request.- Parameters:
req- StaplerRequestrsp- StaplerResponse- Throws:
IOException- thrown exceptionjakarta.servlet.ServletException- thrown exception
-
doIndex
public void doIndex(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 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:
getIconFileNamein interfaceAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-