![producteev gitlab integrations producteev gitlab integrations](https://logwork.com/blog/wp-content/uploads/2019/12/tmetric-gitlab-integration-1024x512.png)
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.
#Producteev gitlab integrations 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. Secret – the Secret is found on your GitLab app's page.Application ID – the Application ID is found on your GitLab app's page.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.
![producteev gitlab integrations producteev gitlab integrations](https://dotscience.com/blog/2019-12-18-gitlab-integration/images/featured_hu9002468d47b2144058120eece0ee033b_128955_1595x1148_resize_q75_box.jpg)
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.
![producteev gitlab integrations producteev gitlab integrations](http://www.mobius.co.uk/wp-content/uploads/2019/01/gitlab-validated-1024x651.jpg)
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.
#Producteev gitlab integrations code#
Report your Quality Gate status to your merge requests - (starting in Developer Edition) See your Quality Gate and code metric results right in GitLab so you know if it's safe to merge your changes.
![producteev gitlab integrations producteev gitlab integrations](https://image.slidesharecdn.com/webinarcontinuousintegrationwithgitlab-160405075624/95/webinar-continuous-integration-with-gitlab-1-638.jpg)
Starting in Developer Edition, SonarScanners running in GitLab CI/CD jobs can automatically detect branches or merge requests being built so you don't need to specifically pass them as parameters to the scanner.