简体   繁体   English

安装SCM活动插件后,Sonar无法找到SVN命令

[英]Sonar is not able to find SVN command after installing SCM Activity plugin

I've just installed SCM Activity plugin 1.5 in Sonar 3.2 following the installation procedure . 按照安装过程,我刚刚在Sonar 3.2中安装了SCM Activity插件1.5。 So Subversion is also available on the server where Sonar is installed as well. 因此,Subversion在安装Sonar的服务器上也可用。 Moreover I've checked that svn is available on the command prompt. 此外,我已经检查了svn在命令提示符下是否可用。

However as soon as I start a jenkins job to run Sonar metrics, I've got the following warning in the output console: 但是,一旦我开始执行詹纳斯作业来运行Sonar指标,我就会在输出控制台中收到以下警告:

[INFO] [11:17:24.504] Retrieve SCM info for /home/jenkins/jenkins-workspace/jobs/fhome-module-base-model_METRICS/workspace/src/main/java/com/mainsys/fhome/module/base/model/validation/ValidationResult.java
[INFO] [11:17:24.505] Executing: /bin/sh -c cd /home/jenkins/jenkins-workspace/jobs/fhome-module-base-model_METRICS/workspace/src/main/java/com/mainsys/fhome/module/base/model/validation && svn --username sonar --password '*****' --no-auth-cache --non-interactive --trust-server-cert blame --xml ValidationResult.java
[INFO] [11:17:24.506] Working directory: /home/jenkins/jenkins-workspace/jobs/fhome-module-base-model_METRICS/workspace/src/main/java/com/mainsys/fhome/module/base/model/validation
[WARN] [11:17:24.523] Fail to retrieve SCM info of: /home/jenkins/jenkins-workspace/jobs/fhome-module-base-model_METRICS/workspace/src/main/java/com/mainsys/fhome/module/base/model/validation/ValidationResult.java. Reason: The svn command failed.
/bin/sh: svn: not found

Any idea how to solve this issue ? 任何想法如何解决这个问题?

svn可执行文件可能在您的路径中可用,但在执行Jenkins的用户的路径中不可用。

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

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