Class QualityGate.QualityGateDescriptor

java.lang.Object
hudson.model.Descriptor<QualityGate>
io.jenkins.plugins.analysis.core.util.QualityGate.QualityGateDescriptor
All Implemented Interfaces:
Saveable, OnMaster
Enclosing class:
QualityGate

@Extension public static class QualityGate.QualityGateDescriptor extends Descriptor<QualityGate>
Descriptor of the QualityGate.
  • Constructor Details

    • QualityGateDescriptor

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

    • doFillTypeItems

      @POST public ListBoxModel doFillTypeItems(@AncestorInPath AbstractProject<?,?> project)
      Return the model for the select widget.
      Parameters:
      project - the project that is configured
      Returns:
      the quality gate types
    • doCheckThreshold

      @POST public FormValidation doCheckThreshold(@AncestorInPath AbstractProject<?,?> project, @QueryParameter int threshold)
      Performs on-the-fly validation of the quality gate threshold.
      Parameters:
      project - the project that is configured
      threshold - the threshold
      Returns:
      the validation result