Class QualityGate.QualityGateDescriptor
- java.lang.Object
-
- hudson.model.Descriptor<QualityGate>
-
- io.jenkins.plugins.analysis.core.util.QualityGate.QualityGateDescriptor
-
- Enclosing class:
- QualityGate
@Extension public static class QualityGate.QualityGateDescriptor extends Descriptor<QualityGate>
Descriptor of theQualityGate
.
-
-
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 Constructor Description QualityGateDescriptor()
Creates a new descriptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormValidation
doCheckThreshold(AbstractProject<?,?> project, int threshold)
Performs on-the-fly validation of the quality gate threshold.ListBoxModel
doFillTypeItems(AbstractProject<?,?> project)
Return the model for the select widget.-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, 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
-
-
-
-
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 configuredthreshold
- the threshold- Returns:
- the validation result
-
-