Merge Requests support for GitLab


(Julien RICHARD) #1

https://docs.sonarqube.org/display/SONAR/Pull+Request+Analysis does not seem to support Gitlab (self hosted).

Would be great if it was the case!


(Fabrice Bellingard) #2

The good news is that GitLab is in our radar. Probably stating in 2019.


(Julien RICHARD) #3

When you say 2019 you mean next year right? :sweat_smile:

To What extent could it be achieved in GitLab plugin? (https://github.com/gabrie-allaigre/sonar-gitlab-plugin)


(Fabrice Bellingard) #4

Yes, I mean next year :slight_smile:

I don’t know know this plugin, so I can’t tell. What is sure is that support of PR decoration for GitLab on SonarCloud cannot be achieved through a plugin since it’s not possible to install third-party plugins in SonarCloud.


Gitlab pull requests decoration
(Julien RICHARD) #5

Ok in my case I’m using a self hosted SonarQube server.

I think there are two different aspects of the MR support I’d like to have:

  • Having real MR discussion (not commit discussion). GitLab recently allowed that into their API.
  • Having information on the MR about the general quality (Code coverage, Quality Gate,…). Right now it was achieved by comments by the GitLab plugin.

(Fatih Erdem) #6

I couldn’t agree more. We are about to build CI/CD for our projects. We are using SonarQube 7.3 and we can’t connect Gitlab with Sonar via third party plugin. I think 2019 is too late. :frowning:


(Enrico Bottani) #7

As there been any update on this? 2019 is still a goal? Do you have indication about if its going to be early 2019 or late 2019?Thanks :smiley:


(Fabrice Bellingard) #8

We don’t have visibility on this. :confused:

To be fully transparent: we contacted GitLab and had discussions with them. They are not very keen on working tightly with us to integrate our products and services. So we prefer to focus on integrations for which we have a good partnership and a privileged relationship with the solution providers (Microsoft, Atlassian and GitHub). It’s sad, but there’s nothing more we can do because we don’t know nor use GitLab products - so such tight integration can’t be done just by us.


(Julien RICHARD) #9

Do you plan to expose the PR functionalities to plugin authors ? I feel like Gitlab plugin (https://github.com/gabrie-allaigre/sonar-gitlab-plugin) could then add this support.