

To import your GitLab projects into SonarQube, you need to first set your global SonarQube settings. Add a personal access token for importing repositories.If you're using Developer Edition or above, this is also the first step in adding merge request decoration. Setting up the import of GitLab projects into SonarQube allows you to easily create SonarQube projects from your GitLab projects. Importing your GitLab projects into SonarQube You should name your SonarQube group my-group to synchronize it with your GitLab group and my-group/my-subgroup to synchronize it with your GitLab subgroup.
#HOW TO INSTALL GITLAB ON ECLIPSE FULL#
To synchronize a GitLab group or subgroup with a SonarQube group, name the SonarQube group with the full path of the GitLab group or subgroup URL.įor example, with the following GitLab group setup: GitLab users inherit membership to subgroups from parent groups. GitLab group synchronizationĮnable Synchronize user groups at Administration > Configuration > General Settings > DevOps Platform Integrations > GitLab to associate GitLab groups with existing SonarQube groups of the same name. On the login form, the new "Log in with GitLab" button allows users to connect with their GitLab accounts.

Set the following settings to finish setting up GitLab authentication: Keep these handy, open your SonarQube instance, and navigate to Administration > Configuration > General Settings > DevOps Platform Integrations > GitLab > Authentication.

Here you find your Application ID and Secret. Select read_user if you only plan to delegate authentication.Īfter saving your application, GitLab takes you to the app's page.

Scopes – select api if you plan to enable group synchronization.Redirect URI – enter your SonarQube URL with the path /oauth2/callback/gitlab.Name – your app's name, such as SonarQube.Specify the following settings in your OAuth app: You can find general instructions for creating a GitLab OAuth app here. You can delegate authentication to GitLab using a dedicated GitLab OAuth application. Starting in Developer Edition, you can analyze multiple branches and merge requests. Branch AnalysisĬommunity Edition doesn't support the analysis of multiple branches, so you can only analyze your main branch. Integration with GitLab Self-Managed requires at least GitLab Self-Managed version 11.7.
#HOW TO INSTALL GITLAB ON ECLIPSE CODE#
