Class IssuesTotalColumn
java.lang.Object
hudson.views.ListViewColumn
io.jenkins.plugins.analysis.core.columns.IssuesTotalColumn
- All Implemented Interfaces:
ExtensionPoint
,Describable<ListViewColumn>
Shows the number of issues of a job in a column of a Jenkins view. This column provides an auto-selection mode that
selects all tools that are available for a job. If you are interested in individual results you can also select the
participating tools one by one.
- Author:
- Ullrich Hafner
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Model for oneAnalysisResult
in a job.static class
Extension point registration.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDetails
(Job<?, ?> job) Returns the total number of issues for the selected static analysis tool in a given job.getName()
boolean
getTools()
Returns the total number of issues for the selected static analysis tool in a given job.getType()
Returns the URL to the selected static analysis results, if unique.protected Object
Called after de-serialization to retain backward compatibility..void
Sets the display name of the column.void
setSelectTools
(boolean selectTools) Determines whether all available tools should be selected or if the selection should be done individually.void
setTools
(List<ToolSelection> tools) Returns the tools that should be taken into account when summing up the totals of a job.void
Defines which value should be shown in the column.Methods inherited from class hudson.views.ListViewColumn
all, createDefaultInitialColumnList, createDefaultInitialColumnList, createDefaultInitialColumnList, getColumnCaption, getDescriptor, shownByDefault
-
Constructor Details
-
IssuesTotalColumn
@DataBoundConstructor public IssuesTotalColumn()Creates a new instance ofToolSelection
.
-
-
Method Details
-
readResolve
Called after de-serialization to retain backward compatibility..- Returns:
- this
-
getSelectTools
public boolean getSelectTools() -
setSelectTools
@DataBoundSetter public void setSelectTools(boolean selectTools) Determines whether all available tools should be selected or if the selection should be done individually.- Parameters:
selectTools
- iftrue
the selection of tools can be done manually by selecting the corresponding ID, otherwise all available tools in a job are automatically selected
-
getTools
-
setTools
Returns the tools that should be taken into account when summing up the totals of a job.- Parameters:
tools
- the tools to select- See Also:
-
getName
-
setName
Sets the display name of the column.- Parameters:
name
- the name of the column
-
getType
-
setType
Defines which value should be shown in the column.- Parameters:
type
- the type of the values to show
-
getTotal
Returns the total number of issues for the selected static analysis tool in a given job.- Parameters:
job
- the job to select- Returns:
- the number of issues for a tool in a given job
-
getDetails
Returns the total number of issues for the selected static analysis tool in a given job.- Parameters:
job
- the job to select- Returns:
- the number of issues for a tool in a given job
-
getUrl
Returns the URL to the selected static analysis results, if unique.- Parameters:
job
- the job to select- Returns:
- the URL to the results, if this column renders the results of a unique tool, empty string otherwise
-