Class IssuesTotalColumn

  • All Implemented Interfaces:
    ExtensionPoint, Describable<ListViewColumn>

    public class IssuesTotalColumn
    extends 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
    • Constructor Detail

      • IssuesTotalColumn

        @DataBoundConstructor
        public IssuesTotalColumn()
        Creates a new instance of ToolSelection.
    • Method Detail

      • readResolve

        protected Object 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 - if true the selection of tools can be done manually by selecting the corresponding ID, otherwise all available tools in a job are automatically selected
      • setTools

        @DataBoundSetter
        public void setTools​(List<ToolSelection> tools)
        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:
        setSelectTools(boolean)
      • getName

        public String getName()
      • setName

        @DataBoundSetter
        public void setName​(String name)
        Sets the display name of the column.
        Parameters:
        name - the name of the column
      • setType

        @DataBoundSetter
        public void setType​(IssuesStatistics.StatisticProperties type)
        Defines which value should be shown in the column.
        Parameters:
        type - the type of the values to show
      • getTotal

        public OptionalInt getTotal​(Job<?,​?> job)
        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

        public List<IssuesTotalColumn.AnalysisResultDescription> getDetails​(Job<?,​?> job)
        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

        public String getUrl​(Job<?,​?> job)
        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