这是我在这里的第一个问题。我花了 3 天时间寻找答案,但仍然一无所获。
我正在使用 Hudson 对 30 多个项目进行声纳分析。(它们建立在相同的环境中)
项目主要使用 Ant。
Hudson 版本:2.1.2
SCM 同步配置插件:0.0.3
在几个项目中,我遇到了这种错误:
INFO .p.s.SonarScmManager - Executing: /bin/sh -c cd /export/hudson/workspace/project2/sources_for_sonar/a/ab/abc/abcd && svn --username user --password '****' --no-auth-cache --non-interactive --trust-server-cert blame --xml SomeKindOfJava.java
INFO .p.s.SonarScmManager - Working directory: /export/hudson/workspace/project2/sources_for_sonar/a/ab/abc/abcd
INFO org.sonar.INFO - Retrieve SCM info for /export/hudson/workspace/project2/sources_for_sonar/a/ab/abc/abcd/OtherJavaFile.java
WARN o.s.p.s.Blame - Fail to retrieve SCM info of: /export/hudson/workspace/project2/sources_for_sonar/a/ab/abc/abcd/DiffJavaFile.java. Reason: The svn command failed.
20:19:59 couldn't set locale correctly
20:19:59 couldn't set locale correctly
20:19:59 /bin/sh: svn: not found
我已经考虑过没有为操作系统(Solaris)安装 svn 的问题,但它不会影响所有其他项目,而不仅仅是其中一些项目?