运行 TeamCity 上的 SonarQube
Running SonarQube on TeamCity
我是teamcity上的运行sonarqube,安装了插件,可以看到安装的服务,但是添加到构建步骤的时候,报错
我检查了机器,sonarqube 服务没有 运行。没有说我需要在服务器上安装sonarscanner。
能否请教一下。
ERROR: SonarQube server [dev-ci-01:9000] can not be reached
[10:52:12]ERROR: Error during SonarQube Scanner execution
[10:52:12]org.sonarsource.scanner.api.internal.ScannerException: Unable to execute SonarQube
[10:52:12] at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.run(IsolatedLauncherFactory.java:84)
[10:52:12] at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.run(IsolatedLauncherFactory.java:71)
[10:52:12] at java.security.AccessController.doPrivileged(Native Method)
[10:52:12] at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:71)
[10:52:12] at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:67)
[10:52:12] at org.sonarsource.scanner.api.EmbeddedScanner.doStart(EmbeddedScanner.java:218)
[10:52:12] at org.sonarsource.scanner.api.EmbeddedScanner.start(EmbeddedScanner.java:156)
[10:52:12] at org.sonarsource.scanner.cli.Main.execute(Main.java:74)
[10:52:12] at org.sonarsource.scanner.cli.Main.main(Main.java:61)
[10:52:12]Caused by: java.lang.IllegalStateException: Fail to get bootstrap index from server
[10:52:12] at org.sonarsource.scanner.api.internal.Jars.getBootstrapIndex(Jars.java:100)
[10:52:12] at org.sonarsource.scanner.api.internal.Jars.getScannerEngineFiles(Jars.java:76)
[10:52:12] at org.sonarsource.scanner.api.internal.Jars.download(Jars.java:70)
[10:52:12] at org.sonarsource.scanner.api.internal.JarDownloader.download(JarDownloader.java:39)
[10:52:12] at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.run(IsolatedLauncherFactory.java:75)
[10:52:12] ... 8 more
[10:52:12]Caused by: java.lang.IllegalArgumentException: unexpected url: dev-ci-01:9000/batch/index
[10:52:12] at org.sonarsource.scanner.api.internal.shaded.okhttp.Request$Builder.url(Request.java:142)
[10:52:12] at org.sonarsource.scanner.api.internal.ServerConnection.callUrl(ServerConnection.java:109)
[10:52:12] at org.sonarsource.scanner.api.internal.ServerConnection.downloadString(ServerConnection.java:98)
[10:52:12] at org.sonarsource.scanner.api.internal.Jars.getBootstrapIndex(Jars.java:96)
[10:52:12] ... 12 more
[10:52:12]ERROR:
[10:52:12]ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
[10:52:12]Process exited with code 1
谢谢大家,我将 sonarqube 服务器更改为 localhost:9000 现在可以正常工作了
我是teamcity上的运行sonarqube,安装了插件,可以看到安装的服务,但是添加到构建步骤的时候,报错
我检查了机器,sonarqube 服务没有 运行。没有说我需要在服务器上安装sonarscanner。
能否请教一下。
ERROR: SonarQube server [dev-ci-01:9000] can not be reached [10:52:12]ERROR: Error during SonarQube Scanner execution [10:52:12]org.sonarsource.scanner.api.internal.ScannerException: Unable to execute SonarQube [10:52:12] at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.run(IsolatedLauncherFactory.java:84) [10:52:12] at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.run(IsolatedLauncherFactory.java:71) [10:52:12] at java.security.AccessController.doPrivileged(Native Method) [10:52:12] at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:71) [10:52:12] at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:67) [10:52:12] at org.sonarsource.scanner.api.EmbeddedScanner.doStart(EmbeddedScanner.java:218) [10:52:12] at org.sonarsource.scanner.api.EmbeddedScanner.start(EmbeddedScanner.java:156) [10:52:12] at org.sonarsource.scanner.cli.Main.execute(Main.java:74) [10:52:12] at org.sonarsource.scanner.cli.Main.main(Main.java:61) [10:52:12]Caused by: java.lang.IllegalStateException: Fail to get bootstrap index from server [10:52:12] at org.sonarsource.scanner.api.internal.Jars.getBootstrapIndex(Jars.java:100) [10:52:12] at org.sonarsource.scanner.api.internal.Jars.getScannerEngineFiles(Jars.java:76) [10:52:12] at org.sonarsource.scanner.api.internal.Jars.download(Jars.java:70) [10:52:12] at org.sonarsource.scanner.api.internal.JarDownloader.download(JarDownloader.java:39) [10:52:12] at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.run(IsolatedLauncherFactory.java:75) [10:52:12] ... 8 more [10:52:12]Caused by: java.lang.IllegalArgumentException: unexpected url: dev-ci-01:9000/batch/index [10:52:12] at org.sonarsource.scanner.api.internal.shaded.okhttp.Request$Builder.url(Request.java:142) [10:52:12] at org.sonarsource.scanner.api.internal.ServerConnection.callUrl(ServerConnection.java:109) [10:52:12] at org.sonarsource.scanner.api.internal.ServerConnection.downloadString(ServerConnection.java:98) [10:52:12] at org.sonarsource.scanner.api.internal.Jars.getBootstrapIndex(Jars.java:96) [10:52:12] ... 12 more [10:52:12]ERROR: [10:52:12]ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging. [10:52:12]Process exited with code 1
谢谢大家,我将 sonarqube 服务器更改为 localhost:9000 现在可以正常工作了