Importing your GitLab repositories
Importing a GitLab repository to create a corresponding project in SonarQube Server.
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
- In the top navigation bar of SonarQube Server, select the Projects tab. 
- In the top right corner, select the Create Project > Import from DevOps platforms button. 
- In the Import from GitLab section, select Setup. The GitLab project onboarding page opens. The repositories of the organization are listed on the page. 
- Select one or several repositories. 
- 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?

