Class DeltaReport
java.lang.Object
io.jenkins.plugins.analysis.core.model.DeltaReport
Provides the delta between the reports of two different builds.
- Author:
- Ullrich Hafner
-
Constructor Summary
ConstructorDescriptionDeltaReport
(edu.hm.hafner.analysis.Report report, int currentBuildNumber) Creates a newDeltaReport
.DeltaReport
(edu.hm.hafner.analysis.Report report, Run<?, ?> referenceBuild, int currentBuildNumber, edu.hm.hafner.analysis.Report referenceIssues) Creates a new instance ofDeltaReport
. -
Method Summary
Modifier and TypeMethodDescriptionedu.hm.hafner.analysis.Report
Returns all issues of the current build.edu.hm.hafner.analysis.Report
Returns all fixed issues: i.e., all issues, that are part of the reference report but are not present in the current report anymore.edu.hm.hafner.analysis.Report
Returns all new issues: i.e., all issues, that are part of the current report but have not been shown up in the reference report.edu.hm.hafner.analysis.Report
Returns all outstanding issues: i.e., all issues, that are part of the current and reference report.Returns the ID of the reference build.Returns statistics for the number of issues (total, new, delta).boolean
isEmpty()
Returns whether this report contains issues or not.
-
Constructor Details
-
DeltaReport
public DeltaReport(edu.hm.hafner.analysis.Report report, int currentBuildNumber) Creates a newDeltaReport
. Since no reference build is available, all issues are considered outstanding.- Parameters:
report
- the current reportcurrentBuildNumber
- the number of the current build, the reference of all new warnings will be set to this number
-
DeltaReport
public DeltaReport(edu.hm.hafner.analysis.Report report, Run<?, ?> referenceBuild, int currentBuildNumber, edu.hm.hafner.analysis.Report referenceIssues) Creates a new instance ofDeltaReport
.- Parameters:
report
- the current reportreferenceBuild
- the reference buildcurrentBuildNumber
- the number of the current build, the reference of all new warnings will be set to this numberreferenceIssues
- the issues in the reference build
-
-
Method Details
-
isEmpty
public boolean isEmpty()Returns whether this report contains issues or not.- Returns:
true
if the report is empty,false
otherwise
-
getReferenceBuildId
Returns the ID of the reference build.- Returns:
- the reference build ID
-
getAllIssues
public edu.hm.hafner.analysis.Report getAllIssues()Returns all issues of the current build.- Returns:
- the issues of the current build.
-
getOutstandingIssues
public edu.hm.hafner.analysis.Report getOutstandingIssues()Returns all outstanding issues: i.e., all issues, that are part of the current and reference report.- Returns:
- the outstanding issues
-
getNewIssues
public edu.hm.hafner.analysis.Report getNewIssues()Returns all new issues: i.e., all issues, that are part of the current report but have not been shown up in the reference report.- Returns:
- the new issues
-
getFixedIssues
public edu.hm.hafner.analysis.Report getFixedIssues()Returns all fixed issues: i.e., all issues, that are part of the reference report but are not present in the current report anymore.- Returns:
- the fixed issues
-
getStatistics
Returns statistics for the number of issues (total, new, delta).- Returns:
- the issues statistics
-