Klasse IssuesTotalColumn

java.lang.Object
hudson.views.ListViewColumn
io.jenkins.plugins.analysis.core.columns.IssuesTotalColumn
Alle implementierten Schnittstellen:
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.
Autor:
Ullrich Hafner
  • Konstruktordetails

    • IssuesTotalColumn

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

    • readResolve

      protected Object readResolve()
      Called after de-serialization to retain backward compatibility..
      Gibt zurück:
      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.
      Parameter:
      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
    • getTools

      public List<ToolSelection> getTools()
    • 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.
      Parameter:
      tools - the tools to select
      Siehe auch:
    • getName

      public String getName()
    • setName

      @DataBoundSetter public void setName(String name)
      Sets the display name of the column.
      Parameter:
      name - the name of the column
    • getType

    • setType

      @DataBoundSetter public void setType(IssuesStatistics.StatisticProperties type)
      Defines which value should be shown in the column.
      Parameter:
      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.
      Parameter:
      job - the job to select
      Gibt zurück:
      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.
      Parameter:
      job - the job to select
      Gibt zurück:
      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.
      Parameter:
      job - the job to select
      Gibt zurück:
      the URL to the results, if this column renders the results of a unique tool, empty string otherwise