SonarQube:
Version: 7.9.1.27448
Developer Edition
Offline Distribution
Sonar Scanner Windows:
Version: 4.0.0.1744
Git Plugin:
Version: 1.8 (build 1574)
GitHub Authentication for SonarQube:
Version: 1.5 (build 870)
I am currently trying to automatically analyze pull requests in GitHub from my Jenkins environment. I have this mostly working, so far the following works correctly:
Pull Request Analysis in SonarQube is automatically kicked off when a Pull Request is opened.
Pull Request Analysis is successful and is uploaded to SonarQube
SonarQube decorates the PR in the checks tab in GitHub.
The links in the PR decoration link back to our SonarQube server.
The issue I am stuck on is that all of the images in the PR Decoration are broken links because they point to “localhost” instead of pointing to my server’s address. See below picture to see what I am seeing.
I have set the “Administration -> General -> Server base URL” to my server’s address and this is what resolved a similar issue I had with the links. It seems the images do not respect that setting though. Is there a setting I am missing?
Thanks I thought I read the other posts and saw people saying it was already resolved so figured I was missing something. Any idea when that fix would be coming? I am currently in the evaluation period for the Developer Edition and need to prepare an analysis of the features for my organization to decide if we are going to purchase it. Would be helpful if I could highlight that it would be fixed around a certain date.
Hi Daniel,
The issue is fixed in 8.x but there is a workaround for 7.9.x so you don’t have to wait. Restarting SonarQube instance after setting a proper sonar.core.serverBaseURL should fix the problem.
Hi,
I’m using the developer edition 8.1 and I have the images broken in my PR Decoration. The links to Sonarqube are pointing to the right place as I set the Server Base URL parameter but the icons are still broken.
As a detail, I run my Sonarqube instance in a VPN protected URL but I’m logged in my VPN when accessing the PR decoration page in GitHub.
I have same setup, and exactly same issue,
I’m using 8.2.0.32929 and developer edition,
the server url is only accessible via VPN and the images are not loaded on the client.
Let me know please if there’s a workaround or solution to it.
@Fernando_Torres Did you get any workaround for the same ? As I am using internal server images are not loading.
If there is some option to change url only the static content’s that would have been great
This is how I solved it,
I ran a service which proxy passes all /static URL and redirect everything else to the internal host of sonarqube.
Then I enabled this service for external network and used this as base-url in sonar settings.
The PR icons shows up properly and all links also works.
I am also facing the same issue, and I am using the Gitlab.
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.