Hi Team,
We have integrated the “Decorating Pull Requests” on the Gitlab. And from the Gitlab for the merge request, we are able to see the “SonarQube Code analysis” in the Discussion tab. But we notice that the images are not populated as shown in the image below. And it is pointing to “localhost:9000/dashboard”.
Could you please help on this.
Regards,
Nagaraj
Hi, you need to define your SonarQube url in SonarQube admin settings, General, Server base URL
http://localhost:9000/admin/settings
The next MR decoration will have the correct links.
Hi Pierre,
We set the SonarQube admin settings, General, Server base URL
with the our sonarqube URL.
Is anything else missing in the configuration.
Regards,
Nagaraj
You need to run the analysis again, to have the decoration updated.
Hi Pierre,
I have run the analysis again, but still not working. Even I have restarted the Sonarqube.
Also checked with new Merge request.
Regards,
Nagaraj
what do the links looks like now?
Yeah so it appears that you did not change the Server Base URL. Please double-check
Server base URL is already set. Same URL, I am able to access it from the browser.
Did you press the “save” button under the field?
Hi Pierre,
We are using the SonarQube Developer edition 8.4.1. And we also add the url in the sonar.core.serverBaseURL (After that restarted the server).
Still the all the links/images points to the localhost.
http://localhost:9000/dashboard?
Regards,
Nagaraj