2015-10-12 158 views
0

我們已經配置了Jenkins和sonarqube跑步者的SOnarqube。 建築物出現以下錯誤: 您能否請幫助:Sonarqube Jenkins和sonarqube跑步者

NFO:------------------------------- -----------------------------------------

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: java.lang.IllegalStateException: The svn blame command [svn blame --xml --non-interactive -x -w ext/projectmgt/ProjectNumberAutoSuggestion.java] failed: svn: E155036: Please see the 'svn upgrade' command svn: E155036: The working copy at 'C:\CodeReview\JenkinsHome\jobs\Test\workspace' is too old (format 29) to work with client version '1.8.13 (r1667537)' (expects format 31). You need to upgrade the working copy first.

at org.sonar.plugins.scm.svn.SvnBlameCommand.blame(SvnBlameCommand.java:110) 
at org.sonar.plugins.scm.svn.SvnBlameCommand.access$000(SvnBlameCommand.java:45) 
at org.sonar.plugins.scm.svn.SvnBlameCommand$1.call(SvnBlameCommand.java:91) 
at org.sonar.plugins.scm.svn.SvnBlameCommand$1.call(SvnBlameCommand.java:88) 
at java.util.concurrent.FutureTask.run(FutureTask.java:262) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
at java.lang.Thread.run(Thread.java:745) 

錯誤: 錯誤:使用-X開關重新運行SonarQube Runner以啓用完整的調試日誌記錄。 構建步驟'調用獨立SonarQube分析'標記構建爲失敗 完成:失敗

回答

0

該問題對我來說看起來相當清楚。工作區被檢出了一箇舊版SVN,低於1.8。當聲納試圖運行時,它使用的是SVN 1.8,如果工作空間與以前的SVN版本一起檢出,那麼這將不起作用。有兩個選項:

  1. 刪除工作區,並做好結賬與SVN 1.8
  2. 配置詹金斯使用SVN的同一版本,你用來檢查出的代碼。