Class AnchoreProjectAction

  • All Implemented Interfaces:
    Action, ModelObject

    public class AnchoreProjectAction
    extends Object
    implements Action
    Project action object which displays the trend report on the project top page.
    • Field Detail

      • job

        public final Job<?,​?> job
        Parent that owns this action.
    • Constructor Detail

      • AnchoreProjectAction

        public AnchoreProjectAction​(Job<?,​?> job)
        Create new AnchoreProjectAction instance.
        Parameters:
        job - instance of Jenkins Job
    • Method Detail

      • doIndex

        public void doIndex​(org.kohsuke.stapler.StaplerRequest request,
                            org.kohsuke.stapler.StaplerResponse response)
                     throws IOException
        Redirects the index page to the last report.
        Parameters:
        request - Stapler request
        response - Stapler response
        Throws:
        IOException - in case of an error
      • getLastAnchoreAction

        public AnchoreAction getLastAnchoreAction()
        Returns:
        the most current AnchoreAction of the associated job
      • getTrendGraph

        public Graph getTrendGraph()
        Generates the Anchore trend graph
        Returns:
        graph object