which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
SonarQube developer edition 8.2 (build 32929)
Scanner - sonarsource/sonar-scanner-cli:latest
what are you trying to achieve
I am trying to enable “Pull request decoration by provider” feature in GitLab
what have you tried so far to achieve this
I followed the documentation and all the settings in SonarQube correctly.
I am not sure of the three analysis parameters. If I set it in the properties file in the root directory then I get an entry in the pull requests section in SonarQube, but there are errors saying the incorrect value for those parameters.
I don’t know how to get the values for these three analysis parameters from GitLab CI.
Can you anyone please help ?
If you’re using Gitlab CI, you shouldn’t need to put any values in for
sonar.pullrequest.*. The scanner should figure it out on its own. We also have documentation specifically for Gitlab CI.
So first things first, remove anything you’ve added related to
sonar.pullrequest.* and go vanilla.
After doing that – when you build/analyze a Merge Request, does a Pull Request show up in your SonarQube projects? Any warnings/errors?
Yes it is working now in SonarQube
I was expecting some changes in the Giblab merge requests UI as well.
I’m having a similar issue as mason but I’m not passing any special parameters. In my case everything shows up fine in SonarQube but there is no summary/comment left on the gitlab Merge request.
And according to this link I expect to see something like this: https://www.sonarqube.org/sonarqube-8-3/