Class CompositeBuildResult
java.lang.Object
io.jenkins.plugins.analysis.core.charts.CompositeBuildResult
- All Implemented Interfaces:
AnalysisBuildResult
A build result that is composed of a series of other builds results simply by summing up the number of issues.
- Author:
- Ullrich Hafner
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeBuildResult(Collection<? extends AnalysisBuildResult> results) Creates a composition of the specified results. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of fixed issues in this analysis run.intReturns the number of new issues in this analysis run.intgetNewSizeOf(edu.hm.hafner.analysis.Severity severity) Returns the new number of issues in this analysis run that have the specifiedSeverity.Returns the number of issues in this analysis run, mapped by their origin.Returns the total number of issues (by severity, new, total, fixed and delta) in a build.intReturns the total number of issues in this analysis run.intgetTotalSizeOf(edu.hm.hafner.analysis.Severity severity) Returns the total number of issues in this analysis run that have the specifiedSeverity.
-
Constructor Details
-
CompositeBuildResult
Creates a composition of the specified results. Adds the new value of each property to the existing value of the same property.- Parameters:
results- the results to add
-
-
Method Details
-
getSizePerOrigin
Description copied from interface:AnalysisBuildResultReturns the number of issues in this analysis run, mapped by their origin. The origin is the tool that created the report.- Specified by:
getSizePerOriginin interfaceAnalysisBuildResult- Returns:
- number of issues per origin
-
getFixedSize
public int getFixedSize()Description copied from interface:AnalysisBuildResultReturns the number of fixed issues in this analysis run.- Specified by:
getFixedSizein interfaceAnalysisBuildResult- Returns:
- number of fixed issues
-
getTotalSize
public int getTotalSize()Description copied from interface:AnalysisBuildResultReturns the total number of issues in this analysis run.- Specified by:
getTotalSizein interfaceAnalysisBuildResult- Returns:
- total number of issues
-
getTotalSizeOf
public int getTotalSizeOf(edu.hm.hafner.analysis.Severity severity) Description copied from interface:AnalysisBuildResultReturns the total number of issues in this analysis run that have the specifiedSeverity.- Specified by:
getTotalSizeOfin interfaceAnalysisBuildResult- Parameters:
severity- the severity of the issues to match- Returns:
- total number of issues
-
getNewSize
public int getNewSize()Description copied from interface:AnalysisBuildResultReturns the number of new issues in this analysis run.- Specified by:
getNewSizein interfaceAnalysisBuildResult- Returns:
- number of new issues
-
getNewSizeOf
public int getNewSizeOf(edu.hm.hafner.analysis.Severity severity) Description copied from interface:AnalysisBuildResultReturns the new number of issues in this analysis run that have the specifiedSeverity.- Specified by:
getNewSizeOfin interfaceAnalysisBuildResult- Parameters:
severity- the severity of the issues to match- Returns:
- total number of issues
-
getTotals
Description copied from interface:AnalysisBuildResultReturns the total number of issues (by severity, new, total, fixed and delta) in a build.- Specified by:
getTotalsin interfaceAnalysisBuildResult- Returns:
- the totals
-