ERROR: Sonar server 'http://localhost:9000' can not be reached in GitLab Pipeline

Hi @ferily7,

when you are configuring the sonar.host.url to something like localhost and working with containers this will resolve to localhost in the scanner-cli container and not your sonarqube host. try to configure a public ip of the FQDN (Fully qualified domain name) of your sonarqube instance.

hope that helps

1 Like