Sonner-runner connecting to localhost
mimek opened this issue · 2 comments
Hello,
I have enabled sonar processor in the config file:
sonar.enabled=true sonar.configurationFiles=sonar-project.properties.test, sonar-runner.properties sonar.verbose=true
but during analysis, sonar-runner tries always connect to localhost:9000. I tried to pass him value sonar.host.url through sonnar-runner.properties or sonar-project.properties.test but without success. Also tried by gradle.properties or system variable, without success.
Sputnik is being started with build.gradle from your repo.
Any idea how to overcome this issue and change sonar address server?
1:30:20 DEBUG: cache: /home/jenkins/.sonar/ws_cache/http%3A%2F%2Flocalhost%3A9000/global 01:30:20 INFO: User cache: /home/jenkins/.sonar/cache 01:30:20 DEBUG: Extract sonar-runner-batch in temp... 01:30:20 DEBUG: Get bootstrap index... 01:30:20 DEBUG: Download: http://localhost:9000/batch_bootstrap/index 01:30:20 ERROR: SonarQube server [http://localhost:9000] can not be reached 01:30:20 Exception in thread "main" org.sonar.runner.impl.RunnerException: Unable to execute SonarQube 01:30:20 at org.sonar.runner.impl.IsolatedLauncherFactory$1.run(IsolatedLauncherFactory.java:100)
👍
have the same problem
Had the same issue, somewhat easy to fix, added a pull request for it.