Class RunTab
java.lang.Object
jenkins.model.Tab
io.jenkins.plugins.analysis.core.model.RunTab
- All Implemented Interfaces:
Action,ModelObject,Badgeable
Defines the Warnings tab for a run.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.kohsuke.stapler.HttpResponsedoIndex()Redirects to the overview page if the new build page is enabled.getBadge()getDynamic(String name) Renders a dynamic warning action of the Warnings tab.Returns the model of the overview page that summarizes the results of all warning actions.getTrend()Returns the model of the trend page that shows the trend of the results of all warning actions (or of a single action).The list of warning actions belonging to a run.Generates the widget for the Overview tab.
-
Constructor Details
-
RunTab
Constructs a newRunTab.- Parameters:
object- the run to construct the tab for
-
-
Method Details
-
getIconFileName
-
getDisplayName
-
getUrlName
-
getBadge
-
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
Returns the model of the overview page that summarizes the results of all warning actions. Stapler resolves this getter beforegetDynamic(String), so the URLwarnings/overviewalways shows the overview.- Returns:
- the overview model
-
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 beforegetDynamic(String), so the URLwarnings/trendalways 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
Renders a dynamic warning action of the Warnings tab.- Parameters:
name- the name of the warning action to render.- Returns:
- the warning action.
-