Klasse CoverageProcessor

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

public class CoverageProcessor extends Object
  • Konstruktordetails Linksymbol

    • CoverageProcessor Linksymbol

      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 Linksymbol

    • performCoverageReport Linksymbol

      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 Linksymbol

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

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

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

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

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

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

      public void setSourceFileResolver(SourceFileResolver sourceFileResolver)
    • getGlobalTag Linksymbol

      public String getGlobalTag()
    • setGlobalTag Linksymbol

      public void setGlobalTag(String globalTag)
    • isApplyThresholdRecursively Linksymbol

      public boolean isApplyThresholdRecursively()
    • setApplyThresholdRecursively Linksymbol

      public void setApplyThresholdRecursively(boolean applyThresholdRecursively)
    • isFailBuildIfCoverageDecreasedInChangeRequest Linksymbol

      public boolean isFailBuildIfCoverageDecreasedInChangeRequest()
    • setFailBuildIfCoverageDecreasedInChangeRequest Linksymbol

      public void setFailBuildIfCoverageDecreasedInChangeRequest(boolean failBuildIfCoverageDecreasedInChangeRequest)
    • saveCoverageResult Linksymbol

      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 Linksymbol

      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