Class GerritChecksConfiguration
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
io.jenkins.plugins.gerritchecksapi.GerritChecksConfiguration
- All Implemented Interfaces:
ExtensionPoint,Describable<GlobalConfiguration>,Saveable,Loadable,OnMaster
The global defaults for which stages of a Pipeline build are reported to Gerrit. Jobs and folders
can override them, see
StageReportingJobProperty and StageReportingFolderProperty.-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.SelfNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanconfigure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) doCheckMaxDepth(String value) Only used withStageDepth.MAX_DEPTH.static GerritChecksConfigurationget()intstatic StageReportingThe settings that apply to a job, with everything it inherits resolved: what the job sets itself, then what the folders it lives in set, then the global configuration and finally the built-in defaults.voidsetMaxDepth(int maxDepth) voidsetReportStages(Inheritable reportStages) voidsetReportStagesWhileBuilding(Inheritable reportStagesWhileBuilding) voidsetSkipDeclarativeStages(Inheritable skipDeclarativeStages) voidsetStageDepth(StageDepth stageDepth) voidsetStageForm(StageForm stageForm) Methods inherited from class jenkins.model.GlobalConfiguration
all, configure, getDescriptor, getGlobalConfigPageMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
GerritChecksConfiguration
public GerritChecksConfiguration()
-
-
Method Details
-
get
-
resolve
The settings that apply to a job, with everything it inherits resolved: what the job sets itself, then what the folders it lives in set, then the global configuration and finally the built-in defaults. -
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) throws Descriptor.FormException - Overrides:
configurein classGlobalConfiguration- Throws:
Descriptor.FormException
-
doCheckMaxDepth
Only used withStageDepth.MAX_DEPTH. -
getDisplayName
- Overrides:
getDisplayNamein classDescriptor<GlobalConfiguration>
-
getStageReporting
-
getReportStages
-
setReportStages
-
getReportStagesWhileBuilding
-
setReportStagesWhileBuilding
-
getStageForm
-
setStageForm
-
getStageDepth
-
setStageDepth
-
getMaxDepth
public int getMaxDepth() -
setMaxDepth
public void setMaxDepth(int maxDepth) -
getSkipDeclarativeStages
-
setSkipDeclarativeStages
-