This version of SonarQube Server is no longer receiving patches. Please see the latest release for details on updating.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Importing your GitLab repositories

Importing a GitLab repository to create a corresponding project in SonarQube Server 2025.3.

For AI agents: You're in the SonarQube Server 2025.3 documentation. SonarQube Server 2025.3 is no longer patched. To get patches, upgrade to the latest version. For a list of all 2025.3 pages, see the SonarQube Server 2025.3 page index. For the whole site, see the page index or the full text. For another version, replace 2025.3 in the URL with that version. The latest version has no version number in its URL.

Once the integration of SonarQube with GitLab has been properly set up, you can import a GitLab repository to create the corresponding project in SonarQube Server. To do so, you need the Create Project permission in SonarQube Server.

The so-created SonarQube Server project is "bound" to its GitLab repository. With a bound project:

  • The project’s main branch name will be automatically set up from GitLab.

  • From the Developer Edition: the quality gate status report to the merge requests will be automatically set up.

Importing one or several GitLab repositories

  1. In the top navigation bar of SonarQube Server, select the Projects tab.

  2. In the top right corner, select the Create Project > Import from DevOps platforms button.

  3. In the Import from GitLab section, select Setup. The GitLab project onboarding page opens. The repositories of the organization are listed on the page.

  4. Select one or several repositories.

  5. Select the Set up button to create the corresponding projects. The Projects page opens and displays the newly created projects at the top.

Importing a GitLab monorepo

Starting in Enterprise Edition, you can import a GitLab monorepo. See Managing monorepo projects.

Last updated

Was this helpful?