java.lang.Object
jenkins.model.Tab
io.jenkins.plugins.analysis.core.model.RunTab
All Implemented Interfaces:
Action, ModelObject, Badgeable

public class RunTab extends Tab
Defines the Warnings tab for a run.
  • Constructor Details

    • RunTab

      public RunTab(Actionable object)
      Constructs a new RunTab.
      Parameters:
      object - the run to construct the tab for
  • Method Details

    • getIconFileName

      public String getIconFileName()
    • getDisplayName

      public String getDisplayName()
    • getUrlName

      public String getUrlName()
    • getBadge

      public Badge getBadge()
    • getWidget

      public Widget getWidget()
      Generates the widget for the Overview tab.
      Returns:
      the widget.
    • getWarningActions

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public List<ResultAction> getWarningActions()
      The list of warning actions belonging to a run.
      Returns:
      the list of ordered warning actions, sorted by warning count, then alphabetized.
    • getOverview

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public OverviewModel getOverview()
      Returns the model of the overview page that summarizes the results of all warning actions. Stapler resolves this getter before getDynamic(String), so the URL warnings/overview always shows the overview.
      Returns:
      the overview model
    • getTrend

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public TrendModel getTrend()
      Returns the model of the trend page that shows the trend of the results of all warning actions (or of a single action). Stapler resolves this getter before getDynamic(String), so the URL warnings/trend always shows the trend.
      Returns:
      the trend model
    • doIndex

      @GET public org.kohsuke.stapler.HttpResponse doIndex()
      Redirects to the overview page if the new build page is enabled. The redirect target is derived from the URL of the run (and not from the request), and it is resolved via the context path, so it always points to the overview page of this run, independent of whether the request URL ends with a slash.
      Returns:
      the redirect to the overview page, or a 404 error if the new build page is disabled
    • getDynamic

      public ResultAction getDynamic(String name)
      Renders a dynamic warning action of the Warnings tab.
      Parameters:
      name - the name of the warning action to render.
      Returns:
      the warning action.