Class SummaryModel
java.lang.Object
io.jenkins.plugins.analysis.core.model.SummaryModel
Summary message of a static analysis run. This message is shown as part of the 'summary.jelly' information of the
associated
ResultAction
.
Tool Name: %d issues from %d analyses - Results from analyses {%s, ... %s} - %d new issues (since build %d) - %d outstanding issues - %d fixed issues - No issues since build %d - Quality gates: passed (Reference build %d)
- Author:
- Ullrich Hafner
-
Constructor Summary
ConstructorDescriptionSummaryModel
(StaticAnalysisLabelProvider labelProvider, AnalysisResult result) Creates a newSummaryModel
. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the number of analysis files that have been parsed in this step.org.eclipse.collections.api.list.ImmutableList
<String> int
getId()
int
int
int
getName()
int
int
io.jenkins.plugins.util.QualityGateStatus
Renders the reference build as an HTML link.getTitle()
Returns the title for the small information box in the corresponding build page.getTools()
Returns the tools that contribute to this result.int
boolean
boolean
int
Returns the number of issues for a specific tool given by itsorigin
value.
-
Constructor Details
-
SummaryModel
Creates a newSummaryModel
.- Parameters:
labelProvider
- the label provider to get the labels for the static analysis toolresult
- the result of the static analysis tool
-
-
Method Details
-
getId
-
getName
-
getTitle
Returns the title for the small information box in the corresponding build page.- Returns:
- the title
-
getAnalysesCount
public int getAnalysesCount()Returns the number of analysis files that have been parsed in this step.- Returns:
- the number of analysis files
-
getErrors
-
getTotalSize
public int getTotalSize() -
getNewSize
public int getNewSize() -
getFixedSize
public int getFixedSize() -
getModifiedSize
public int getModifiedSize() -
getModifiedNewSize
public int getModifiedNewSize() -
getModifiedOutstandingSize
public int getModifiedOutstandingSize() -
getTools
Returns the tools that contribute to this result.- Returns:
- the tools that have been used in this report
-
totalSize
Returns the number of issues for a specific tool given by itsorigin
value.- Parameters:
origin
- the ID of the tool- Returns:
- the number of issues for this tool
-
getQualityGateStatus
public io.jenkins.plugins.util.QualityGateStatus getQualityGateStatus() -
isResetQualityGateVisible
public boolean isResetQualityGateVisible() -
getReferenceBuild
-
getReferenceBuildLink
Renders the reference build as an HTML link.- Returns:
- the reference build
- See Also:
-
isZeroIssuesHighscore
public boolean isZeroIssuesHighscore() -
getNoIssuesSinceBuild
public int getNoIssuesSinceBuild() -
getZeroIssuesHighscoreMessage
-