Package hudson.plugins.robot
Class RobotProjectAction
- java.lang.Object
-
- hudson.plugins.robot.RobotProjectAction
-
- All Implemented Interfaces:
Action
,ModelObject
public class RobotProjectAction extends Object implements Action
-
-
Constructor Summary
Constructors Constructor Description RobotProjectAction(Job<?,?> project)
Create new Robot project action
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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.String
getDisplayName()
String
getIconFileName()
Action
getLastBuildAction()
Return the action of last build associated with robotJob<?,?>
getProject()
Get associated project.String
getUrlName()
boolean
isDisplayGraph()
Returns true if there are any builds in the associated project.
-
-
-
Constructor Detail
-
RobotProjectAction
public RobotProjectAction(Job<?,?> project)
Create new Robot project action- Parameters:
project
- Project which this action will be applied to
-
-
Method Detail
-
getProject
public Job<?,?> 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
public Action 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
public String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
public String getUrlName()
- Specified by:
getUrlName
in interfaceAction
-
-