Class WarningsQualityGate.WarningsQualityGateDescriptor
java.lang.Object
hudson.model.Descriptor<io.jenkins.plugins.util.QualityGate>
io.jenkins.plugins.util.QualityGate.QualityGateDescriptor
io.jenkins.plugins.analysis.core.util.WarningsQualityGate.WarningsQualityGateDescriptor
- Enclosing class:
WarningsQualityGate
@Extension
public static class WarningsQualityGate.WarningsQualityGateDescriptor
extends io.jenkins.plugins.util.QualityGate.QualityGateDescriptor
Descriptor of the
WarningsQualityGate
.-
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
-
Method Summary
Modifier and TypeMethodDescriptiondoCheckThreshold
(BuildableItem project, int threshold) Performs on-the-fly validation of the quality gate threshold.Return the model for the select widget.Methods inherited from class io.jenkins.plugins.util.QualityGate.QualityGateDescriptor
doFillCriticalityItems
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, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
WarningsQualityGateDescriptor
public WarningsQualityGateDescriptor()Creates a new descriptor.
-
-
Method Details
-
doFillTypeItems
Return the model for the select widget.- Returns:
- the quality gate types
-
doCheckThreshold
@POST public FormValidation doCheckThreshold(@AncestorInPath BuildableItem 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
-