Class GerritRestCheckout.DescriptorImpl

java.lang.Object
hudson.model.Descriptor<hudson.plugins.git.extensions.GitSCMExtension>
hudson.plugins.git.extensions.GitSCMExtensionDescriptor
io.jenkins.plugins.gerritlightweight.GerritRestCheckout.DescriptorImpl
All Implemented Interfaces:
Saveable, Loadable, OnMaster
Enclosing class:
GerritRestCheckout

@Extension @Symbol("gerritRestCheckout") public static class GerritRestCheckout.DescriptorImpl extends hudson.plugins.git.extensions.GitSCMExtensionDescriptor
Registers the Git behavior and supplies its configuration UI.
  • Constructor Details

    • DescriptorImpl

      public DescriptorImpl()
  • Method Details

    • getDisplayName

      @NonNull public String getDisplayName()
      Overrides:
      getDisplayName in class Descriptor<hudson.plugins.git.extensions.GitSCMExtension>
    • doFillCredentialsIdItems

      @POST public ListBoxModel doFillCredentialsIdItems(@AncestorInPath Item item, @QueryParameter String serverUrl, @QueryParameter String credentialsId)
      Populates the credential selector with username/password credentials matching the server URL. Callers without job configuration permission (or administrator permission outside a job) receive only the current selection, without enumerating other credentials.
      Parameters:
      item - owning job, or null outside a job context
      serverUrl - Gerrit URL used to restrict credential domains
      credentialsId - currently selected credential ID
      Returns:
      available credential choices, including the current selection
    • doCheckServerUrl

      @POST public FormValidation doCheckServerUrl(@QueryParameter String serverUrl)