Class GitLabServer.DescriptorImpl

java.lang.Object
hudson.model.Descriptor<GitLabServer>
io.jenkins.plugins.gitlabserverconfig.servers.GitLabServer.DescriptorImpl
All Implemented Interfaces:
Saveable, Loadable, OnMaster
Enclosing class:
GitLabServer

@Symbol("gitLabServer") @Extension public static class GitLabServer.DescriptorImpl extends Descriptor<GitLabServer>
Our descriptor.
  • Constructor Details

    • DescriptorImpl

      public DescriptorImpl()
  • Method Details

    • doCheckServerUrl

      @POST public static FormValidation doCheckServerUrl(@QueryParameter String serverUrl)
      Checks that the supplied URL is valid.
      Parameters:
      serverUrl - the URL to check.
      Returns:
      the validation results.
    • doCheckHooksRootUrl

      public static FormValidation doCheckHooksRootUrl(@QueryParameter String hooksRootUrl)
      Checks that the supplied URL looks like a valid Jenkins root URL.
      Parameters:
      hooksRootUrl - the URL to check.
      Returns:
      the validation results.
    • doCheckHookTriggerDelay

      public static FormValidation doCheckHookTriggerDelay(@QueryParameter String hookTriggerDelay)
      Checks that the supplied hook trigger delay is valid.
      Parameters:
      hookTriggerDelay - the delay to be checked.
      Returns:
      the validation results.
    • getDisplayName

      @NonNull public String getDisplayName()
      Overrides:
      getDisplayName in class Descriptor<GitLabServer>
    • doTestConnection

      @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public FormValidation doTestConnection(@QueryParameter String serverUrl, @QueryParameter String credentialsId)
    • doFillCredentialsIdItems

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public ListBoxModel doFillCredentialsIdItems(@QueryParameter String serverUrl, @QueryParameter String credentialsId)
      Stapler form completion.
      Parameters:
      serverUrl - the server URL.
      credentialsId - the credentials Id
      Returns:
      the available credentials.
    • doFillWebhookSecretCredentialsIdItems

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public ListBoxModel doFillWebhookSecretCredentialsIdItems(@QueryParameter String serverUrl, @QueryParameter String webhookSecretCredentialsId)
      Stapler form completion.
      Parameters:
      webhookSecretCredentialsId - the webhook secret credentials Id
      Returns:
      the available credentials.