Class DeltaReport

java.lang.Object
io.jenkins.plugins.analysis.core.model.DeltaReport

public class DeltaReport extends Object
Provides the delta between the reports of two different builds.
Author:
Ullrich Hafner
  • Constructor Summary

    Constructors
    Constructor
    Description
    DeltaReport(edu.hm.hafner.analysis.Report report, int currentBuildNumber)
    Creates a new DeltaReport.
    DeltaReport(edu.hm.hafner.analysis.Report report, Run<?,?> referenceBuild, int currentBuildNumber, edu.hm.hafner.analysis.Report referenceIssues)
    Creates a new instance of DeltaReport.
  • Method Summary

    Modifier and Type
    Method
    Description
    edu.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
    Returns whether this report contains issues or not.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DeltaReport

      public DeltaReport(edu.hm.hafner.analysis.Report report, int currentBuildNumber)
      Creates a new DeltaReport. Since no reference build is available, all issues are considered outstanding.
      Parameters:
      report - the current report
      currentBuildNumber - 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 of DeltaReport.
      Parameters:
      report - the current report
      referenceBuild - the reference build
      currentBuildNumber - the number of the current build, the reference of all new warnings will be set to this number
      referenceIssues - 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

      public String 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

      public IssuesStatistics getStatistics()
      Returns statistics for the number of issues (total, new, delta).
      Returns:
      the issues statistics