Sonarqube not locating server
Author: GbengardCreated Dec 19, 2024Updated Dec 19, 2024
Hi,
I followed the instructions using the Jenkinsfile which I edited. The token and host URL were edited. Still, Jenkins keep throwing error it can not locate sonarserver at http://localhost:9000.
My Jenkins and Sonarqube are on my local machine. I can access and log in both.
If I run the "mvn sonar:sonar -Dsonar.login=$SONAR_AUTH_TOKEN -Dsonar.host.url=http://localhost:9000" on my cli. It works fine.
What could be wrong?
Source: iam-veeramalla/Jenkins-Zero-To-Hero