SonarQube PR Comments Link to Localhost

SonarQube Version: 7.6
Sonar Scanner 3.2.0.1227

Hi all,

So I just got my sonar setup to comment on PRs with my account which I really like.

However, SonarQube is creating comments (which is great!), but linking the analysis with localhost (instead of sonar.host.url).

We have our SonarQube instance running in the cloud so I would definitely like to have the analysis link so that all of our developers can see the job.

Thanks!

Hi,

Do you confirm that you’ve configured sonar.core.serverBaseURL (Administration > General > Server base URL) via the UI?

 
Ann

I did not have that, my mistake. I just then need http://sonar.myorg.com correct? I basically just want to replace the localhost in the analysis link provided? I want localhost:9000/projects/issues/etc to become http://sonar.myorg.com:9000/projects/issues/etc.

Also need to setup https I think :slight_smile:

Hi,

Assuming that’s your SQ URL, yes. :smile:

 
:slight_smile:
Ann

Thank you very much!