Klasse CoveragePublisher

Alle implementierten Schnittstellen:
ExtensionPoint, Describable<Publisher>, BuildStep, SimpleBuildStep

public class CoveragePublisher extends Recorder implements SimpleBuildStep
  • Konstruktordetails

    • CoveragePublisher

      @DataBoundConstructor public CoveragePublisher()
  • Methodendetails

    • perform

      public void perform(@NonNull Run<?,?> run, @NonNull FilePath workspace, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOException
      Angegeben von:
      perform in Schnittstelle SimpleBuildStep
      Löst aus:
      InterruptedException
      IOException
    • getRequiredMonitorService

      public BuildStepMonitor getRequiredMonitorService()
      Angegeben von:
      getRequiredMonitorService in Schnittstelle BuildStep
    • getAdapters

      public List<CoverageAdapter> getAdapters()
    • setAdapters

      @DataBoundSetter public void setAdapters(List<CoverageAdapter> adapters)
    • getGlobalThresholds

      public List<Threshold> getGlobalThresholds()
    • setGlobalThresholds

      @DataBoundSetter public void setGlobalThresholds(List<Threshold> globalThresholds)
    • isFailUnhealthy

      public boolean isFailUnhealthy()
    • setFailUnhealthy

      @DataBoundSetter public void setFailUnhealthy(boolean failUnhealthy)
    • isFailUnstable

      public boolean isFailUnstable()
    • setFailUnstable

      @DataBoundSetter public void setFailUnstable(boolean failUnstable)
    • isFailNoReports

      public boolean isFailNoReports()
    • setScm

      @DataBoundSetter public void setScm(String scm)
      Sets the SCM that should be used to find the reference build for. The the SCM will be selected based on a substring comparison, there is no need to specify the full name.
      Parameter:
      scm - the ID of the SCM to use (a substring of the full ID)
    • getScm

      public String getScm()
    • setFailNoReports

      @DataBoundSetter public void setFailNoReports(boolean failNoReports)
    • getSourceFileResolver

      public DefaultSourceFileResolver getSourceFileResolver()
    • setSourceFileResolver

      @DataBoundSetter public void setSourceFileResolver(DefaultSourceFileResolver sourceFileResolver)
    • getTag

      public String getTag()
    • setTag

      @DataBoundSetter public void setTag(String tag)
    • getFailBuildIfCoverageDecreasedInChangeRequest

      public boolean getFailBuildIfCoverageDecreasedInChangeRequest()
    • getCalculateDiffForChangeRequests

      public boolean getCalculateDiffForChangeRequests()
    • setCalculateDiffForChangeRequests

      @Deprecated @DataBoundSetter public void setCalculateDiffForChangeRequests(boolean calculateDiffForChangeRequests)
      Veraltet.
      not needed anymore. Diff is calculated automatically if reference build found.
    • setSkipPublishingChecks

      @DataBoundSetter public void setSkipPublishingChecks(boolean skipPublishingChecks)
    • isSkipPublishingChecks

      public boolean isSkipPublishingChecks()
    • getChecksName

      public String getChecksName()
    • setChecksName

      @DataBoundSetter public void setChecksName(String checksName)
    • setFailBuildIfCoverageDecreasedInChangeRequest

      @DataBoundSetter public void setFailBuildIfCoverageDecreasedInChangeRequest(boolean failBuildIfCoverageDecreasedInChangeRequest)
    • isApplyThresholdRecursively

      public boolean isApplyThresholdRecursively()
    • setApplyThresholdRecursively

      @DataBoundSetter public void setApplyThresholdRecursively(boolean applyThresholdRecursively)
    • getSourceCodeEncoding

      @CheckForNull public String getSourceCodeEncoding()
    • setSourceCodeEncoding

      @DataBoundSetter public void setSourceCodeEncoding(String sourceCodeEncoding)
      Sets the encoding to use to read source files.
      Parameter:
      sourceCodeEncoding - the encoding, e.g. "ISO-8859-1"
    • getSourceDirectories

      public List<io.jenkins.plugins.prism.SourceCodeDirectory> getSourceDirectories()
      Gets the paths to the directories that contain the source code.
      Gibt zurück:
      directories containing the source code
    • setSourceDirectories

      @DataBoundSetter public void setSourceDirectories(List<io.jenkins.plugins.prism.SourceCodeDirectory> sourceCodeDirectories)
      Sets the paths to the directories that contain the source code. If not relative and thus not part of the workspace then these directories need to be added in Jenkins global configuration to prevent accessing of forbidden resources.
      Parameter:
      sourceCodeDirectories - directories containing the source code
    • readResolve

      protected Object readResolve()
      Called after de-serialization to retain backward compatibility or to populate new elements (that would be otherwise initialized to null).
      Gibt zurück:
      this