Class IssuesRecorder.Descriptor

java.lang.Object
hudson.model.Descriptor<Publisher>
hudson.tasks.BuildStepDescriptor<Publisher>
io.jenkins.plugins.analysis.core.steps.IssuesRecorder.Descriptor
All Implemented Interfaces:
Saveable, Loadable, OnMaster
Enclosing class:
IssuesRecorder

@Extension @Symbol("recordIssues") public static class IssuesRecorder.Descriptor extends BuildStepDescriptor<Publisher>
Descriptor for this step: defines the context and the UI elements.
  • Constructor Details

    • Descriptor

      public Descriptor()
  • Method Details

    • addAliases

      @Initializer(before=PLUGINS_STARTED) public static void addAliases()
      Retain backward compatibility.
    • getDisplayName

      @NonNull public String getDisplayName()
      Overrides:
      getDisplayName in class Descriptor<Publisher>
    • isApplicable

      public boolean isApplicable(Class<? extends AbstractProject> jobType)
      Specified by:
      isApplicable in class BuildStepDescriptor<Publisher>
    • doCheckId

      @POST public FormValidation doCheckId(@AncestorInPath BuildableItem project, @QueryParameter String id)
      Performs on-the-fly validation of the ID.
      Parameters:
      project - the project that is configured
      id - the ID of the tool
      Returns:
      the validation result
    • doFillSourceCodeEncodingItems

      @POST public ComboBoxModel doFillSourceCodeEncodingItems(@AncestorInPath BuildableItem project)
      Returns a model with all available charsets.
      Parameters:
      project - the project that is configured
      Returns:
      a model with all available charsets
    • doFillSourceCodeRetentionItems

      @POST public ListBoxModel doFillSourceCodeRetentionItems()
      Returns a model with all SourceCodeRetention strategies.
      Returns:
      a model with all SourceCodeRetention strategies.
    • doFillMinimumSeverityItems

      @POST public ListBoxModel doFillMinimumSeverityItems()
      Returns a model with all available severity filters.
      Returns:
      a model with all available severity filters
    • doCheckReportEncoding

      @POST public FormValidation doCheckReportEncoding(@AncestorInPath BuildableItem project, @QueryParameter String reportEncoding)
      Performs on-the-fly validation of the character encoding.
      Parameters:
      project - the project that is configured
      reportEncoding - the character encoding
      Returns:
      the validation result
    • doCheckSourceCodeEncoding

      @POST public FormValidation doCheckSourceCodeEncoding(@AncestorInPath BuildableItem project, @QueryParameter String sourceCodeEncoding)
      Performs on-the-fly validation on the character encoding.
      Parameters:
      project - the project that is configured
      sourceCodeEncoding - the character encoding
      Returns:
      the validation result
    • doCheckHealthy

      @POST public FormValidation doCheckHealthy(@AncestorInPath BuildableItem project, @QueryParameter int healthy, @QueryParameter int unhealthy)
      Performs on-the-fly validation of the health report thresholds.
      Parameters:
      project - the project that is configured
      healthy - the healthy threshold
      unhealthy - the unhealthy threshold
      Returns:
      the validation result
    • doCheckUnhealthy

      @POST public FormValidation doCheckUnhealthy(@AncestorInPath BuildableItem project, @QueryParameter int healthy, @QueryParameter int unhealthy)
      Performs on-the-fly validation of the health report thresholds.
      Parameters:
      project - the project that is configured
      healthy - the healthy threshold
      unhealthy - the unhealthy threshold
      Returns:
      the validation result
    • doFillTrendChartTypeItems

      @POST public ListBoxModel doFillTrendChartTypeItems()
      Returns a model with all aggregation trend chart positions.
      Returns:
      a model with all aggregation trend chart positions
    • doFillChecksAnnotationScopeItems

      @POST public ListBoxModel doFillChecksAnnotationScopeItems()
      Returns a model with all WarningChecksPublisher.ChecksAnnotationScope scopes.
      Returns:
      a model with all WarningChecksPublisher.ChecksAnnotationScope scopes.