Class GitLabServer.DescriptorImpl

    • Constructor Detail

      • DescriptorImpl

        public DescriptorImpl()
    • Method Detail

      • 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.
      • 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.