PR for SonarQube shows localhost for quality gate validation in Azure DevOps after update to 2025.1

We are using SonarQube Server, updated on the weekend to sonarqube-enterprise-2025.1.0.102418 from 10.7.0. It is ZIP deployment.

After update Gate link in the azure devops(marked in red in screenshot below) redirects to
https://localhost:9000/dashboard?ProjectName&pullRequest=20789 instead of correct one:
https://SQServer:9000/dashboard?ProjectName&pullRequest=20789

Build Validation that is triggerring status of that gate has correct value of
https://SQServer:9000/dashboard?ProjectName&pullRequest=20789 under extension tab:

This where error happens in Azure DevOPS:

Expected behaviour to have correct url for gate as part of PR as well.

We found how to solve. Not sure was it removed after the update or is that new option. Setting it helped to correct PR link.

Server base URL

HTTP(S) URL of this SonarQube server, such as https://yourhost.yourdomain/sonar. This value is used outside SonarQube itself, e.g. for PR decoration, emails, etc.

Key: sonar.core.serverBaseURL

1 Like