Class GitLabServers
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
io.jenkins.plugins.gitlabserverconfig.servers.GitLabServers
- All Implemented Interfaces:
ExtensionPoint,Describable<GlobalConfiguration>,PersistentDescriptor,Saveable,Loadable,OnMaster
Represents the global configuration of GitLab servers.
-
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
FieldsFields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactions()Gets descriptor ofGitLabPersonalAccessTokenCreatorbooleanaddServer(GitLabServer server) Adds an server Checks if the GitLab Server name is uniquefindServer(String serverName) Checks to see if the supplied server URL is defined in the global configuration.static GitLabServersget()Gets theGitLabServerssingleton.Populates aListBoxModelwith the servers.Gets the list of endpoints.static voidbooleanremoveServer(String name) Removes a server entry Checks if the GitLab Server name is matchedvoidsetServers(List<? extends GitLabServer> servers) Sets the list of GitLab ServersbooleanupdateServer(GitLabServer server) Updates an existing endpoint (or adds if missing) Checks if the GitLab Server name is matchedMethods inherited from class jenkins.model.GlobalConfiguration
all, configure, 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, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.PersistentDescriptor
load
-
Field Details
-
LOGGER
-
-
Constructor Details
-
GitLabServers
public GitLabServers()
-
-
Method Details
-
getRequiredGlobalConfigPagePermission
- Overrides:
getRequiredGlobalConfigPagePermissionin classDescriptor<GlobalConfiguration>
-
get
Gets theGitLabServerssingleton.- Returns:
- the
GitLabServerssingleton.
-
getServerItems
Populates aListBoxModelwith the servers.- Returns:
- A
ListBoxModelwith all the servers
-
getServers
Gets the list of endpoints.- Returns:
- the list of endpoints
-
setServers
Sets the list of GitLab Servers- Parameters:
servers- the list of endpoints.
-
getDisplayName
- Overrides:
getDisplayNamein classDescriptor<GlobalConfiguration>
-
actions
Gets descriptor ofGitLabPersonalAccessTokenCreator- Returns:
- the list of descriptors
-
addServer
Adds an server Checks if the GitLab Server name is unique- Parameters:
server- the server to add.- Returns:
trueif the list of endpoints was modified
-
updateServer
Updates an existing endpoint (or adds if missing) Checks if the GitLab Server name is matched- Parameters:
server- the server to update.- Returns:
trueif the list of endpoints was modified
-
removeServer
Removes a server entry Checks if the GitLab Server name is matched- Parameters:
name- the server name to remove.- Returns:
trueif the list of endpoints was modified
-
findServer
Checks to see if the supplied server URL is defined in the global configuration.- Parameters:
serverName- the server url to check.- Returns:
- the global configuration for the specified server url or
nullif not defined.
-
migrateWebhookSecretsToCredentials
-