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

@Extension public class GerritChecksConfiguration extends GlobalConfiguration
The global defaults for which stages of a Pipeline build are reported to Gerrit. Jobs and folders can override them, see StageReportingJobProperty and StageReportingFolderProperty.
  • Constructor Details

    • GerritChecksConfiguration

      public GerritChecksConfiguration()
  • Method Details

    • get

      public static GerritChecksConfiguration get()
    • resolve

      public static StageReporting resolve(Job<?,?> job)
      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:
      configure in class GlobalConfiguration
      Throws:
      Descriptor.FormException
    • doCheckMaxDepth

      public FormValidation doCheckMaxDepth(@QueryParameter String value)
      Only used with StageDepth.MAX_DEPTH.
    • getDisplayName

      public String getDisplayName()
      Overrides:
      getDisplayName in class Descriptor<GlobalConfiguration>
    • getStageReporting

      public StageReporting getStageReporting()
    • getReportStages

      public Inheritable getReportStages()
    • setReportStages

      public void setReportStages(Inheritable reportStages)
    • getReportStagesWhileBuilding

      public Inheritable getReportStagesWhileBuilding()
    • setReportStagesWhileBuilding

      public void setReportStagesWhileBuilding(Inheritable reportStagesWhileBuilding)
    • getStageForm

      public StageForm getStageForm()
    • setStageForm

      public void setStageForm(StageForm stageForm)
    • getStageDepth

      public StageDepth getStageDepth()
    • setStageDepth

      public void setStageDepth(StageDepth stageDepth)
    • getMaxDepth

      public int getMaxDepth()
    • setMaxDepth

      public void setMaxDepth(int maxDepth)
    • getSkipDeclarativeStages

      public Inheritable getSkipDeclarativeStages()
    • setSkipDeclarativeStages

      public void setSkipDeclarativeStages(Inheritable skipDeclarativeStages)