Klasse CoverageReportAdapter

java.lang.Object
io.jenkins.plugins.coverage.adapter.CoverageAdapter
io.jenkins.plugins.coverage.adapter.CoverageReportAdapter
Alle implementierten Schnittstellen:
ExtensionPoint, Describable<CoverageAdapter>, Serializable
Bekannte direkte Unterklassen:
JSONCoverageReportAdapter, XMLCoverageReportAdapter

public abstract class CoverageReportAdapter extends CoverageAdapter
Siehe auch:
  • Konstruktordetails

    • CoverageReportAdapter

      public CoverageReportAdapter(String path)
      Parameter:
      path - Ant-style path of report files.
  • Methodendetails

    • setMergeToOneReport

      @DataBoundSetter public void setMergeToOneReport(boolean mergeToOneReport)
    • isMergeToOneReport

      public boolean isMergeToOneReport()
    • getResult

      public CoverageResult getResult(File report) throws CoverageException
      Get CoverageResult from report file.
      Parameter:
      report - report file
      Gibt zurück:
      CoverageResult
      Löst aus:
      CoverageException - cannot convert report file to CoverageResult
    • convert

      protected abstract Document convert(File source) throws CoverageException
      convert report to standard format report, and return the DOM document representation.
      Parameter:
      source - report file
      Gibt zurück:
      Document representation of standard format report
      Löst aus:
      CoverageException
    • parseToResult

      @CheckForNull protected abstract CoverageResult parseToResult(Document document, String reportName) throws CoverageException
      parse report document to CoverageResult.
      Parameter:
      document - document be parse
      reportName - report name
      Gibt zurück:
      CoverageResult
      Löst aus:
      CoverageException
    • getThresholds

      public List<Threshold> getThresholds()
      Getter for thresholds.
      Gibt zurück:
      thresholds
      Siehe auch:
    • setThresholds

      @DataBoundSetter public void setThresholds(List<Threshold> thresholds)
      Setter for thresholds.
      Parameter:
      thresholds - value to set for thresholds
    • getPath

      public String getPath()
      Getter for property 'path'.
      Gibt zurück:
      value for property 'path'
    • performCoveragePlugin

      public final void performCoveragePlugin(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws IOException, InterruptedException
      Perform publish coverage reports step with the adapter called this method.
      Parameter:
      run - a build this is running as a part of
      workspace - a workspace to use for any file operations
      launcher - a way to start processes
      listener - a place to send output
      Löst aus:
      InterruptedException - if the step is interrupted
      IOException - if something goes wrong; use AbortException for a polite error
    • performCoveragePlugin

      public final void performCoveragePlugin(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener, DefaultSourceFileResolver sourceFileResolver) throws IOException, InterruptedException
      Perform publish coverage reports step with the adapter called this method.
      Parameter:
      run - a build this is running as a part of
      workspace - a workspace to use for any file operations
      launcher - a way to start processes
      listener - a place to send output
      sourceFileResolver - source file resolver
      Löst aus:
      InterruptedException - if the step is interrupted
      IOException - if something goes wrong; use AbortException for a polite error