我在安装程序后刚刚在Sonar 4.5中安装了SCM Activity插件1.8。因此Subversion也可以在安装了Sonar的服务器上使用。
我想从SVN中提取责备信息并希望在SoanrQube中显示,即每当出现新问题时,它会自动分配给罪魁祸首。
但是,一旦我启动jenkins 1.532作业来运行Sonar指标,我就会在输出控制台中收到以下警告:
Fail to retrieve SCM info of: /export/bld/monetbld/jenkins/workspace/MONET/monet-service/src/com/monet/service/server/query/events/EventQuery.java. Reason: The svn command failed.
[sonar:sonar] svn: '.' is not a working copy
[sonar:sonar] mv: cannot stat `/export/bld/monetbld/.subversion/servers_TMP': No such file or directory
[sonar:sonar] 05:49:40.002 INFO - Retrieve SCM blame information with encoding UTF-8 done: 26590 ms
[sonar:sonar] 05:49:40.002 INFO - Sensor ScmActivitySensor done: 26590 ms
[sonar:sonar] 05:49:40.014 INFO - Sensor CPD Sensor (wrapped)...
[sonar:sonar] 05:49:40.014 INFO - JavaCpdEngine is used for java
[sonar:sonar] 05:49:40.035 INFO - Cross-project analysis disabled
[sonar:sonar] 05:49:42.355 INFO - Sensor CPD Sensor (wrapped) done: 2341 ms
[sonar:sonar] 05:49:42.528 INFO - Execute decorators...
[sonar:sonar] 05:49:49.291 WARN - Unable to assign issue [03fea3ce-2d42-4d9d-bea9-9921815562e6]
[sonar:sonar] 05:49:49.291 WARN - Unable to assign issue [61a32323-7c60-4724-adcd-0523bb3bf188]
[sonar:sonar] 05:49:49.298 WARN - Unable to assign issue [ef6d4a2d-2875-4ee1-8ed8-1330da9d8931]
知道如何解决这个问题吗?
答案 0 :(得分:0)
完全同意@bahrep
根据您提供的日志,它是您的代码库的导出,它只是获取存储库当前状态的副本,并且无法以任何方式提交您的更改。
另外,因为它的代码库导出不包含.svn
目录(SonarQube SCM插件生成Blame报告所需的目录)
解决方案是检查您的代码库(包括.svn
目录)并执行SonarQube扫描。