Setting up integration at global level
Setting up GitLab and SonarQube Server for integration at the global level.
This section explains how to set up GitLab and SonarQube Server for global integration. To perform this setup, you need the global Administer System permission in SonarQube Server.
Preparing the integration
Setting up the import of GitLab repositories
With this setup, users will be able to import GitLab repositories into SonarQube Server. See Importing GitHub repositories fore more details.
This integration is performed through a "GitLab Configuration" record, which is used in SonarQube Server to access the GitLab instance. You need the Administration System permission to set up a GitLab Configuration.
To set up a GitLab Configuration in SonarQube Server:
In the SonarQube Server UI, go to Administration > Configuration > General Settings > DevOps Platform Integrations.
Select the GitLab tab and click Create configuration. The Create a configuration dialog opens.
Specify the following settings:
Configuration Name (Enterprise and Data Center edition only): The name used to identify your GitLab configuration at the project level. Use something succinct and easily recognizable.
GitLab URL: The GitLab API URL. We recommend using
https://gitlab.com/api/v4
. You can also use your own GitLab server URL.Personal Access Token: Token you generated in Preparing the integration above.
Select Save configuration.
Setting up user provisioning and authentication
Last updated
Was this helpful?