Wrong destination at "View report" link on pull request decoration in bitbucket


We use SonarQube Enterprise, bitbucket server v7.17.13 and Jenkins 2.319.2

We have configured pull request decorators and works fine except that the link at “View report” into bitbucket that is reported by sonar is wrong. The link is incorrect because have another environment.

View report link destination is https://stagging.sonarqube.it.webloyalty.services… but the analysis at jenkins is correct and the analysis is at sonar.

16:55:05  INFO: ANALYSIS SUCCESSFUL, you can find the results at: https://sonarqube.it.webloyalty.services/dashboard?id=test-project&pullRequest=22
16:55:05  INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
16:55:05  INFO: More about the report processing at https://sonarqube.it.webloyalty.services/api/ce/task?id=AYeaAxK-Y-KmPhTn7Zad

I thought that this problem will be solved setting configuration at sonar under Administration > Configuration > General Settings > General > General > Server base URL

But when pull request is created, the pull request decorator view reports link still is referencing to stagging environment.

How can be fixed or where is the configuration that use pull request decorator to create view reports link?


It sounds like your Server base URL (Administration → General Settings) isn’t correct.


Thanks @ganncamp the error was at sonar.core.serverBaseURL property