Class QualityGate.QualityGateDescriptor
java.lang.Object
hudson.model.Descriptor<QualityGate>
io.jenkins.plugins.analysis.core.util.QualityGate.QualityGateDescriptor
- Enclosing class:
- QualityGate
Descriptor of the
QualityGate
.-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoCheckThreshold
(AbstractProject<?, ?> project, int threshold) Performs on-the-fly validation of the quality gate threshold.doFillTypeItems
(AbstractProject<?, ?> project) Return the model for the select widget.Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
QualityGateDescriptor
public QualityGateDescriptor()Creates a new descriptor.
-
-
Method Details
-
doFillTypeItems
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 configuredthreshold
- the threshold- Returns:
- the validation result
-