Klasse CoveragePublisher

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

public class CoveragePublisher extends Recorder implements SimpleBuildStep
  • Konstruktordetails Linksymbol

    • CoveragePublisher Linksymbol

      @DataBoundConstructor public CoveragePublisher()
  • Methodendetails Linksymbol

    • perform Linksymbol

      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 Linksymbol

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

      public List<CoverageAdapter> getAdapters()
    • setAdapters Linksymbol

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

      public List<Threshold> getGlobalThresholds()
    • setGlobalThresholds Linksymbol

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

      public boolean isFailUnhealthy()
    • setFailUnhealthy Linksymbol

      @DataBoundSetter public void setFailUnhealthy(boolean failUnhealthy)
    • isFailUnstable Linksymbol

      public boolean isFailUnstable()
    • setFailUnstable Linksymbol

      @DataBoundSetter public void setFailUnstable(boolean failUnstable)
    • isFailNoReports Linksymbol

      public boolean isFailNoReports()
    • setScm Linksymbol

      @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 Linksymbol

      public String getScm()
    • setFailNoReports Linksymbol

      @DataBoundSetter public void setFailNoReports(boolean failNoReports)
    • getSourceFileResolver Linksymbol

      public DefaultSourceFileResolver getSourceFileResolver()
    • setSourceFileResolver Linksymbol

      @DataBoundSetter public void setSourceFileResolver(DefaultSourceFileResolver sourceFileResolver)
    • getTag Linksymbol

      public String getTag()
    • setTag Linksymbol

      @DataBoundSetter public void setTag(String tag)
    • getFailBuildIfCoverageDecreasedInChangeRequest Linksymbol

      public boolean getFailBuildIfCoverageDecreasedInChangeRequest()
    • getCalculateDiffForChangeRequests Linksymbol

      public boolean getCalculateDiffForChangeRequests()
    • setCalculateDiffForChangeRequests Linksymbol

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

      @DataBoundSetter public void setSkipPublishingChecks(boolean skipPublishingChecks)
    • isSkipPublishingChecks Linksymbol

      public boolean isSkipPublishingChecks()
    • getChecksName Linksymbol

      public String getChecksName()
    • setChecksName Linksymbol

      @DataBoundSetter public void setChecksName(String checksName)
    • setFailBuildIfCoverageDecreasedInChangeRequest Linksymbol

      @DataBoundSetter public void setFailBuildIfCoverageDecreasedInChangeRequest(boolean failBuildIfCoverageDecreasedInChangeRequest)
    • isApplyThresholdRecursively Linksymbol

      public boolean isApplyThresholdRecursively()
    • setApplyThresholdRecursively Linksymbol

      @DataBoundSetter public void setApplyThresholdRecursively(boolean applyThresholdRecursively)
    • getSourceCodeEncoding Linksymbol

      @CheckForNull public String getSourceCodeEncoding()
    • setSourceCodeEncoding Linksymbol

      @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 Linksymbol

      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 Linksymbol

      @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 Linksymbol

      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