Class GroovyParser.DescriptorImpl

java.lang.Object
hudson.model.Descriptor<GroovyParser>
io.jenkins.plugins.analysis.warnings.groovy.GroovyParser.DescriptorImpl
All Implemented Interfaces:
Saveable, Loadable, OnMaster
Enclosing class:
GroovyParser

@Extension public static class GroovyParser.DescriptorImpl extends Descriptor<GroovyParser>
Descriptor to validate GroovyParser.
Author:
Ullrich Hafner
  • Constructor Details

    • DescriptorImpl

      public DescriptorImpl()
      Creates a new descriptor.
  • Method Details

    • doCheckId

      @POST public FormValidation doCheckId(@AncestorInPath BuildableItem project, @QueryParameter(required=true) String id)
      Performs on-the-fly validation of the parser ID. The ID needs to be unique.
      Parameters:
      project - the project that is configured
      id - the ID of the parser
      Returns:
      the validation result
    • doCheckName

      @POST public FormValidation doCheckName(@AncestorInPath BuildableItem project, @QueryParameter(required=true) String name)
      Performs on-the-fly validation on the name of the parser that needs to be unique.
      Parameters:
      project - the project that is configured
      name - the name of the parser
      Returns:
      the validation result
    • doCheckRegexp

      @POST public FormValidation doCheckRegexp(@AncestorInPath BuildableItem project, @QueryParameter(required=true) String regexp)
      Performs on-the-fly validation on the regular expression.
      Parameters:
      project - the project that is configured
      regexp - the regular expression
      Returns:
      the validation result
    • doCheckScript

      @POST public FormValidation doCheckScript(@AncestorInPath BuildableItem project, @QueryParameter(required=true) String script)
      Performs on-the-fly validation on the Groovy script.
      Parameters:
      project - the project that is configured
      script - the script
      Returns:
      the validation result
    • doCheckExample

      @POST public FormValidation doCheckExample(@AncestorInPath BuildableItem project, @QueryParameter String example, @QueryParameter String regexp, @QueryParameter String script)
      Parses the example message with the specified regular expression and script.
      Parameters:
      project - the project that is configured
      example - example that should resolve to a warning
      regexp - the regular expression
      script - the script
      Returns:
      the validation result
    • getDisplayName

      @NonNull public String getDisplayName()
      Overrides:
      getDisplayName in class Descriptor<GroovyParser>