简体   繁体   English

与詹金斯和声纳赛跑者的Sonarqube

[英]Sonarqube with Jenkins and sonarqube runner

We have configured SOnarqube with Jenkins and sonarqube runner. 我们已经与詹金斯和声纳赛跑者一起配置了SOnarqube。 Getting following error on building: Can you please help: 在构建时出现以下错误:请您提供帮助:

NFO: ------------------------------------------------------------------------ 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\\Jenk 错误:Sonar运行器执行org.sonar.runner.impl.Runner时出错。异常:无法在org.sonar.runner.impl的org.sonar.runner.impl.BatchLauncher $ 1.delegateExecution(BatchLauncher.java:91)执行Sonar。 BatchLauncher $ 1.run(BatchLauncher.java:75),位于org.sonar.runner.impl的java.security.AccessController.doPrivileged(本机方法).org.sonar.runner.impl的BatchLauncher.doExecute(BatchLauncher.java:69)位于org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)的.BatchLauncher.execute(BatchLauncher.java:50),位于org.sonar.runner.api.Runner.execute(Runner.java:100)的位于org.sonar.runner.Main.main(Main.java:53)的org.sonar.runner.Main.execute(Main.java:59)的org.sonar.runner.Main.executeTask(Main.java:70)引起原因:java.lang.IllegalStateException:svn责备命令[svn责备--xml-非交互式-x -w ext / projectmgt / ProjectNumberAutoSuggestion.java]失败:svn:E155036:请参阅“ svn升级”命令svn:E155036:工作副本位于'C:\\ CodeReview \\ Jenk insHome\\jobs\\Test\\workspace' is too old (format 29) to work with client version '1.8.13 (r1667537)' (expects format 31). insHome \\ jobs \\ Test \\ workspace'太旧(格式29),无法与客户端版本'1.8.13(r1667537)'一起使用(期望格式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)

ERROR: ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging. 错误:错误:使用-X开关重新运行SonarQube Runner以启用完整的调试日志记录。 Build step 'Invoke Standalone SonarQube Analysis' marked build as failure Finished: FAILURE 构建步骤“调用独立SonarQube分析”将构建标记为失败完成:FAILURE

The problem looks pretty clear to me. 这个问题在我看来很清楚。 The workspace was checked out with an older version of SVN, below 1.8. 工作区已使用低于1.8的SVN较旧版本签出。 When sonar is trying to run, it is using SVN 1.8 which won't work if the workspace was checked out with a previous SVN version. 当声纳试图运行时,它使用的是SVN 1.8,如果工作区是使用以前的SVN版本签出的,则它将无法正常工作。 There are two options here: 这里有两个选项:

  1. Delete the workspace and do the checkout with SVN 1.8 删除工作区并使用SVN 1.8进行结帐
  2. Configure Jenkins to use the same version of SVN you used to check out the code. 将Jenkins配置为使用用于签出代码的相同版本的SVN。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM