Class RobotProjectAction

java.lang.Object
hudson.plugins.robot.RobotProjectAction
All Implemented Interfaces:
Action, ModelObject

public class RobotProjectAction extends Object implements Action
  • Constructor Details

    • RobotProjectAction

      public RobotProjectAction(Job<?,?> project)
      Create new Robot project action
      Parameters:
      project - Project which this action will be applied to
  • Method Details

    • 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 - StaplerRequest
      rsp - StaplerResponse
      Throws:
      IOException - thrown exception
      javax.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 - StaplerRequest
      rsp - StaplerResponse
      Throws:
      IOException - thrown exception
    • getIconFileName

      public String getIconFileName()
      Specified by:
      getIconFileName in interface Action
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface Action
      Specified by:
      getDisplayName in interface ModelObject
    • getUrlName

      public String getUrlName()
      Specified by:
      getUrlName in interface Action