Class ReportHistory

java.lang.Object
io.jenkins.plugins.reporter.model.ReportHistory
All Implemented Interfaces:
History, Iterable<edu.hm.hafner.echarts.BuildResult<ReportResult>>

public class ReportHistory extends Object implements History
  • Constructor Details

    • ReportHistory

      public ReportHistory(Run<?,?> baseline, ResultSelector selector)
      Creates a new instance of ReportHistory.
      Parameters:
      baseline - the build to start the history from
      selector - selects the associated action from a build
  • Method Details

    • getBaselineAction

      public Optional<ReportAction> getBaselineAction()
      Description copied from interface: History
      Returns the baseline action (if already available).
      Specified by:
      getBaselineAction in interface History
      Returns:
      the baseline action
    • getBaselineResult

      public Optional<ReportResult> getBaselineResult()
      Description copied from interface: History
      Returns the baseline result (if already available).
      Specified by:
      getBaselineResult in interface History
      Returns:
      the baseline result
    • getResult

      public Optional<ReportResult> getResult()
      Description copied from interface: History
      Returns the historical result (if there is any).
      Specified by:
      getResult in interface History
      Returns:
      the historical result
    • getBuild

      public Optional<Run<?,?>> getBuild()
      Description copied from interface: History
      Returns the build that contains the historical result (if there is any).
      Specified by:
      getBuild in interface History
      Returns:
      the historical result
    • getReport

      public Report getReport()
      Description copied from interface: History
      Returns the report of the historical result. If there is no historical build found, then an empty report is returned.
      Specified by:
      getReport in interface History
      Returns:
      the report of the historical build
    • iterator

      @NonNull public Iterator<edu.hm.hafner.echarts.BuildResult<ReportResult>> iterator()
      Specified by:
      iterator in interface History
      Specified by:
      iterator in interface Iterable<edu.hm.hafner.echarts.BuildResult<ReportResult>>
    • hasMultipleResults

      public boolean hasMultipleResults()
      Description copied from interface: History
      Returns whether this history has more than one result.
      Specified by:
      hasMultipleResults in interface History
      Returns:
      true if there are multiple results, false otherwise