Introduction

SonarQube’s integration with GitLab self-managed and GitLab SaaS subscriptions allows you to maintain code quality and security in your GitLab projects.

To set up the GitLab integration, you can also check out this video.

With this integration, you’ll be able to:

  • Authenticate with GitLab: Sign in to SonarQube Community Build with your GitLab credentials.

  • Import your GitLab repositories: Import your GitLab Projects into SonarQube Community Build to easily set up SonarQube Community Build projects.

  • Analyze projects with GitLab CI/CD: Integrate analysis into your build pipeline.

SonarQube Community Build doesn’t support various features such as the analysis of multiple branches and pull requests. See Feature comparison table to know which GitHub integration features are supported by the other SonarQube deployments.

From SonarQube Community Build 25.1, to integrate SonarQube Community Build with GitLab self-managed subscriptions, we recommend using GitLab version 17.5+.

  • Setting up integration at global level This section explains how to set up the integration of SonarQube Community Build with GitLab. You need the global Administer System permission in SonarQube to perform this setup.

  • Importing your GitLab repositories Community Build Once the integration of SonarQube Community Build with GitLab has been properly set up, you can import a GitLab repository to create the corresponding project in SonarQube Community Build.

  • Adding analysis to GitLab CI/CD pipeline Once you have created your project(s) in SonarQube Community Build, you can add the SonarQube Community Build analysis to your GitLab CI/CD pipeline.

Last updated

Was this helpful?