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.HttpRedirectdoIndex(org.kohsuke.stapler.StaplerResponse2 rsp) Redirects to first warning action if new UI enabled.getBadge()getDynamic(String name) Renders a dynamic warning action of the Warnings tab.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.
-
doIndex
public org.kohsuke.stapler.HttpRedirect doIndex(org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException Redirects to first warning action if new UI enabled.- Parameters:
rsp- the response to use for forwarding if the new UI is disabled.- Returns:
- the highest priority warning action.
- Throws:
IOException- If an input or output exception occurs.
-
getDynamic
Renders a dynamic warning action of the Warnings tab.- Parameters:
name- the name of the warning action to render.- Returns:
- the warning action.
-