Klasse PublishIssuesStep

Alle implementierten Schnittstellen:
ExtensionPoint, Describable<org.jenkinsci.plugins.workflow.steps.Step>, Serializable

public class PublishIssuesStep extends org.jenkinsci.plugins.workflow.steps.Step implements Serializable
Publish issues created by a static analysis build. The recorded issues are stored as a ResultAction in the associated Jenkins build. If the issues report has a unique ID, then the created action will use this ID as well. Otherwise, a default ID is used to publish the results. In any case, the computed ID can be overwritten by specifying an ID as step parameter.
Siehe auch:
  • Konstruktordetails

  • Methodendetails

    • getIssues

      public List<AnnotatedReport> getIssues()
    • setId

      @DataBoundSetter public void setId(String id)
      Defines the ID of the results. The ID is used as URL of the results and as name in UI elements. If no ID is given, then the ID of the associated result object is used.
      id - the ID of the results
    • getId

      public String getId()
    • setName

      @DataBoundSetter public void setName(String name)
      Defines the name of the results. The name is used for all labels in the UI. If no name is given, then the name of the associated StaticAnalysisLabelProvider is used.
      name - the name of the results
    • getName

      public String getName()
    • setScm

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

      public String getScm()
    • setFailOnError

      @DataBoundSetter public void setFailOnError(boolean failOnError)
      Determines whether to fail the step on errors during the step of recording issues.
      failOnError - if true then the build will be failed on errors, false then errors are only reported in the UI
    • getFailOnError

      public boolean getFailOnError()
    • isSkipPublishingChecks

      public boolean isSkipPublishingChecks()
      Returns whether publishing checks should be skipped.
      Gibt zurück:
      true if publishing checks should be skipped, false otherwise
    • setSkipPublishingChecks

      @DataBoundSetter public void setSkipPublishingChecks(boolean skipPublishingChecks)
    • setChecksAnnotationScope

      @DataBoundSetter public void setChecksAnnotationScope(io.jenkins.plugins.analysis.core.steps.WarningChecksPublisher.ChecksAnnotationScope checksAnnotationScope)
      Sets the scope of the annotations that should be published to SCM checks.
      checksAnnotationScope - the scope to use
    • getChecksAnnotationScope

      public io.jenkins.plugins.analysis.core.steps.WarningChecksPublisher.ChecksAnnotationScope getChecksAnnotationScope()
    • isPublishAllIssues

      @Deprecated public boolean isPublishAllIssues()
      Returns whether all issues should be published using the Checks API. If set to false only new issues will be published.
      Gibt zurück:
      true if all issues should be published, false if only new issues should be published
    • setPublishAllIssues

      @Deprecated @DataBoundSetter public void setPublishAllIssues(boolean publishAllIssues)
      Returns whether all issues should be published to SCM checks.
      publishAllIssues - if true then all issues should be published, otherwise only new issues
    • setIgnoreQualityGate

      @DataBoundSetter public void setIgnoreQualityGate(boolean ignoreQualityGate)
      If true, then the result of the quality gate is ignored when selecting a reference build. This option is disabled by default, so a failing quality gate will be passed from build to build until the original reason for the failure has been resolved.
      ignoreQualityGate - if true then the result of the quality gate is ignored, otherwise only build with a successful quality gate are selected
    • getIgnoreQualityGate

      public boolean getIgnoreQualityGate()
    • setQuiet

      @DataBoundSetter public void setQuiet(boolean quiet)
      If true, then logger content is muted If false, then logger content goes to loghandler output.
      quiet - if true then logger content is muted.
    • isQuiet

      public boolean isQuiet()
    • getSourceCodeEncoding

      @CheckForNull public String getSourceCodeEncoding()
    • setSourceCodeEncoding

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

      public int getHealthy()
    • setHealthy

      @DataBoundSetter public void setHealthy(int healthy)
      Sets the healthy threshold, i.e., the number of issues when health is reported as 100%.
      healthy - the number of issues when health is reported as 100%
    • getUnhealthy

      public int getUnhealthy()
    • setUnhealthy

      @DataBoundSetter public void setUnhealthy(int unhealthy)
      Sets the healthy threshold, i.e., the number of issues when health is reported as 0%.
      unhealthy - the number of issues when health is reported as 0%
    • getMinimumSeverity

      @CheckForNull public String getMinimumSeverity()
    • getMinimumSeverityAsSeverity

      @CheckForNull public edu.hm.hafner.analysis.Severity getMinimumSeverityAsSeverity()
    • setMinimumSeverity

      @DataBoundSetter public void setMinimumSeverity(String minimumSeverity)
      Sets the minimum severity to consider when computing the health report. Issues with a severity less than this value will be ignored.
      minimumSeverity - the severity to consider
    • setTrendChartType

      @DataBoundSetter public void setTrendChartType(TrendChartType trendChartType)
      Sets the type of the trend chart that should be shown on the job page.
      trendChartType - the type of the trend chart to use
    • getTrendChartType

      public TrendChartType getTrendChartType()
    • setQualityGates

      @DataBoundSetter public void setQualityGates(List<WarningsQualityGate> qualityGates)
      Defines the optional list of quality gates.
      qualityGates - the quality gates
    • getQualityGates

      public List<WarningsQualityGate> getQualityGates()
    • start

      public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext stepContext)
      Angegeben von:
      start in Klasse org.jenkinsci.plugins.workflow.steps.Step