Please help. I’m in a fix. I was mandated to explore the Gitlab integration to SonarQube in an attempt to justify why we need the Gitlab Developer Edition.
Currently, I am using the following versions: SonarQube Developer Edition Version 7.6 (build 21501), GitLab Enterprise Edition [11.8.1-ee]
My goal is to demo the following:
- Test coverage on SonarQube
- On-the-fly analysis of merge (pull) requests sent on Gitlab such that merge requests cannot be approved if there are violations on SonarQube
So far, I have been able to achieve the test coverage bit by incorporating the Jacoco coverage plugin. However, I have not had same luck with the pull requests analysis.
First, the marketplace on the trial version of my SonarQube Developer Edition does not show the Gitlab integration option like we have on the Community Edition. Secondly, and this is meant to be a good thing, the CI job on gitlab (configured on .gitlab-ci.yml file) runs seamlessly and I can see reports on my SonarQube installation. However, there are still no comments in the MR. Please see my .gitlab-ci.yml config below:
What could I be doing wrong? Do I need the gitlab plugin for the SonarQube Developer Edition in order to complete the integration to Gitlab? If yes, Is it available for the Developer Edition with a trial license? Is merge request analysis with inline comments on Gitlab achievable with this integration? Lastly, if the project shows ‘Passed’ on the dashboard interface but with some bugs, should I not expect comments on the bugs on the Gitlab UI?