Klasse CoverageProcessor

java.lang.Object
io.jenkins.plugins.coverage.CoverageProcessor

public class CoverageProcessor extends Object
  • Konstruktordetails

    • CoverageProcessor

      public CoverageProcessor(@NonNull Run<?,?> run, @NonNull FilePath workspace, @NonNull TaskListener listener)
      Parameter:
      run - a build this is running as a part of
      workspace - a workspace to use for any file operations
      listener - a place to send output
  • Methodendetails

    • performCoverageReport

      public void performCoverageReport(List<CoverageReportAdapter> reportAdapters, List<ReportDetector> reportDetectors, List<Threshold> globalThresholds, Set<String> sourceDirectories, String sourceCodeEncoding, String scm) throws IOException, InterruptedException, CoverageException
      Convert all reports that are specified by CoverageReportAdapters and detected by ReportDetectors to CoverageResult, and generate health report from CoverageResult. Add them to CoverageAction and add Action to Run.
      Parameter:
      reportAdapters - reportAdapters specified by user
      reportDetectors - reportDetectors specified by user
      globalThresholds - global threshold specified by user
      scm - the SCM which is used for calculating the code delta to a reference build
      Löst aus:
      IOException
      InterruptedException
      CoverageException
    • getFailUnhealthy

      public boolean getFailUnhealthy()
      Getter for property 'failUnhealthy'
      Gibt zurück:
      value for property 'failUnhealthy'
    • setFailUnhealthy

      public void setFailUnhealthy(boolean failUnhealthy)
      Setter for property 'failUnhealthy'
      Parameter:
      failUnhealthy - value to set for property 'failUnhealthy'
    • getFailUnstable

      public boolean getFailUnstable()
      Getter for property 'failUnstable'
      Gibt zurück:
      value for property 'failUnstable'
    • setFailUnstable

      public void setFailUnstable(boolean failUnstable)
      Setter for property 'failUnstable'
      Parameter:
      failUnstable - valzue to set for property 'failUnstable'
    • getFailNoReports

      public boolean getFailNoReports()
      Getter for property 'failNoReports'
      Gibt zurück:
      value for property 'failNoReports'
    • setFailNoReports

      public void setFailNoReports(boolean failNoReports)
      Setter for property 'failNoReports'
      Parameter:
      failNoReports - value to set for property 'failNoReports'
    • setSourceFileResolver

      public void setSourceFileResolver(SourceFileResolver sourceFileResolver)
    • getGlobalTag

      public String getGlobalTag()
    • setGlobalTag

      public void setGlobalTag(String globalTag)
    • isApplyThresholdRecursively

      public boolean isApplyThresholdRecursively()
    • setApplyThresholdRecursively

      public void setApplyThresholdRecursively(boolean applyThresholdRecursively)
    • isFailBuildIfCoverageDecreasedInChangeRequest

      public boolean isFailBuildIfCoverageDecreasedInChangeRequest()
    • setFailBuildIfCoverageDecreasedInChangeRequest

      public void setFailBuildIfCoverageDecreasedInChangeRequest(boolean failBuildIfCoverageDecreasedInChangeRequest)
    • saveCoverageResult

      public static void saveCoverageResult(Run<?,?> run, CoverageResult report) throws IOException
      Save CoverageResult in build directory.
      Parameter:
      run - build
      report - report
      Löst aus:
      IOException
    • recoverCoverageResult

      public static CoverageResult recoverCoverageResult(Run<?,?> run) throws IOException, ClassNotFoundException
      Recover CoverageResult from build directory.
      Parameter:
      run - build
      Gibt zurück:
      Coverage result
      Löst aus:
      IOException
      ClassNotFoundException