yes I have the plugin installed
2+3. it does run when doing a merge request and I see it in the sonarqube - forgot to add the MR-* branch. but I dont see a comment in gitlab.
I created an access token for my user adn configured the alm integration as attached.
Do I miss a webhook between the gitlab and sonarqube?
No webhook is needed between GitLab and SonarQube. There should be a webhook between GitLab and Jenkins to trigger the execution of the Jenkins pipeline when code is pushed in GitLab.
This webhook is in place since you see the the MR in SonarQube. The last part, decorating the MR, does not work probably because you have not setup your project settings (Project Id), as per the below.
If you did that already, and it still does not work, can you provide a screenshot of your MR in SonarQube and if there is a warning in the top right corner, a screenshot of the warning.
I use docker-compose to run postgres and sonarqube with the default port of 9000.
I don’t see the icons in the sonarqube comment that appears in the gitlab since it points to port 80 of the sonar.
Is there a way I can change it to address 9000 instead of the changing the sonarqube port in my code?
Hello Aviram,
You should only need to set the SonarQube server base URL (Property sonar.core.serverBaseURL) to what is the externally visible URL of your SonarQube server for the icons to show.
This is accessible from SonarQube menu Administration → General → Server base URL.
SonarQube knows himself as http://localhost:9000 by default (if base URL is not set), and all links to SonarQube (including icons) would use this improper base URL.
you should change the base URL into <YourSQpublicURL>:80 (the :80 is probably not needed, this is implicit).
Re-run a analysis to refresh the URL of the icons.