Class RobotProjectAction

    • 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 - 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