Update alias used by sonar-scanner output

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)

  • what are you trying to achieve
    I setup a TEST instance (enterprise edition), restored a copy of PROD database. I’m running sonar-scanner on a sample / test repo against the TEST instance of SQ. When sonar-scanner is done running on my MAC, the DNS alias for output listed below is still configured with PROD DNS name. Can this be changed?

INFO: Analysis report generated in 1120ms, dir size=27 MB
INFO: Analysis report compressed in 3707ms, zip size=8 MB
INFO: Analysis report uploaded in 17533ms
INFO: ANALYSIS SUCCESSFUL, you can browse https://sonarqube.example.com/dashboard?id=sample-repo
INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
INFO: More about the report processing at https://sonarqube.example.com/api/ce/task?id=ABCXY
INFO: Analysis total time: 3:04.718 s

  • what have you tried so far to achieve this
    I reviewed all general settings as admin and couldn’t find reference to prod DNS name. Confirmed the URL in the sonar-scanner.properties where scanner resides points to the TEST SQ instance.

Hi Steve,

Check your server-side settings under Administration → General → Server base URL. This setting must point to the right domain.

I am assuming you are running SonarQube 8.9 LTS and Sonar-Scanner 4.6.2. You did not specify this in your post.

If you have EE with additional licenses, then you should have access to commercial support?


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.