2016-07-20 107 views
-1

我在預覽模式下運行SonarQube分析,我得到下面的錯誤。但是,當我運行完整分析時,它已成功完成。有人知道怎麼修這個東西嗎?聲納亞軍執行失敗

SonarQube:4.5.6

聲納亞軍:2.4

ERROR: Error during Sonar runner execution org.sonar.runner.impl.RunnerException: Unable to execute Sonar at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91) at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75) at java.security.AccessController.doPrivileged(Native Method) at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69) at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50) at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102) at org.sonar.runner.api.Runner.execute(Runner.java:100) at org.sonar.runner.Main.executeTask(Main.java:70) at org.sonar.runner.Main.execute(Main.java:59) at org.sonar.runner.Main.main(Main.java:53) Caused by: org.sonar.api.utils.SonarException: Fail to decorate

回答

0

我找到解決這個。即使您正在運行預覽分析,但不會將結果存儲到聲納數據庫,但Jenkins需要訪問聲納。在這種情況下,您需要將聲納憑據添加到Jenkins以訪問聲納。