Class QualityGate.QualityGateDescriptor

    • Constructor Detail

      • QualityGateDescriptor

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

      • 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