Class CoverageRecorder.Descriptor

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

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

    • Descriptor

      public Descriptor()
  • Method Details

    • 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>
    • doFillSourceCodeRetentionItems

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

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

      @POST public ComboBoxModel doFillSourceCodeEncodingItems()
      Returns a model with all available charsets.
      Returns:
      a model with all available charsets
    • 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
    • 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