可以在Sonar看到SCM责备信息

时间:2014-12-16 07:12:41

标签: svn ant jenkins sonarqube

我刚刚在安装过程中在Sonar 4.5中安装了SCM Activity插件1.8。 Subversion也可以在安装了Sonar的服务器上使用。我正在使用ANT目标开始声纳分析。

我想从SVN中提取责备信息并希望在SoanrQube中显示,即每当出现新问题时,它会自动分配给罪魁祸首。

但是,一旦我启动jenkins 1.532作业来运行Sonar指标,我就有了以下输出控制台:

[sonar:sonar] 17:52:07.778 INFO  - Execute Findbugs 2.0.3 done: 947 ms
[sonar:sonar] 17:52:07.779 INFO  - Sensor FindbugsSensor done: 948 ms
[sonar:sonar] 17:52:07.779 INFO  - Sensor InitialOpenIssuesSensor...
[sonar:sonar] 17:52:08.426 INFO  - Sensor InitialOpenIssuesSensor done: 647 ms
[sonar:sonar] 17:52:08.427 INFO  - Sensor ProjectLinksSensor...
[sonar:sonar] 17:52:08.428 INFO  - Sensor ProjectLinksSensor done: 1 ms
[sonar:sonar] 17:52:08.428 INFO  - Sensor VersionEventsSensor...
[sonar:sonar] 17:52:08.431 INFO  - Sensor VersionEventsSensor done: 3 ms
[sonar:sonar] 17:52:08.432 INFO  - Sensor FileHashSensor...
[sonar:sonar] 17:52:08.432 INFO  - Sensor FileHashSensor done: 0 ms
[sonar:sonar] 17:52:08.432 INFO  - Sensor SurefireSensor...
[sonar:sonar] 17:52:08.432 INFO  - parsing /export/bld/monetbld/jenkins/workspace/MONET Sonar Build/monet-web/.sonar/org.codehaus.sonar_Monet_monet-repricing/build/surefire-reports
[sonar:sonar] 17:52:08.432 WARN  - Reports path not found: /export/bld/monetbld/jenkins/workspace/MONET Sonar Build/monet-web/.sonar/org.codehaus.sonar_Monet_monet-repricing/build/surefire-reports
[sonar:sonar] 17:52:08.432 INFO  - Sensor SurefireSensor done: 0 ms
[sonar:sonar] 17:52:08.432 INFO  - Sensor ScmActivitySensor...
[sonar:sonar] 17:52:08.432 INFO  - Trying to guess scm provider from project layout...
[sonar:sonar] 17:52:08.432 INFO  - Found SCM type: svn
[sonar:sonar] 17:52:08.433 INFO  - Retrieve SCM blame information with encoding UTF-8...
[sonar:sonar] 17:52:08.467 INFO  - Retrieve SCM blame information with encoding UTF-8 done: 34 ms
[sonar:sonar] 17:52:08.467 INFO  - Sensor ScmActivitySensor done: 35 ms
[sonar:sonar] 17:52:08.468 INFO  - Sensor CPD Sensor (wrapped)...
[sonar:sonar] 17:52:08.468 INFO  - JavaCpdEngine is used for java
[sonar:sonar] 17:52:08.469 INFO  - Cross-project analysis disabled
[sonar:sonar] 17:52:08.482 INFO  - Sensor CPD Sensor (wrapped) done: 14 ms
[sonar:sonar] 17:52:08.611 INFO  - Execute decorators...

它说责备信息是从svn转发的,但我仍然无法在声纳上看到它。 Line表示未找到报告路径。这会影响吗?

2 个答案:

答案 0 :(得分:1)

从SonarQube 4.5开始,您需要在Component Viewer上打开SCM装饰才能看到SCM信息。请参阅documentation on the SCM Tab

答案 1 :(得分:0)

SonarQube默认不显示Blame信息。 您必须单击SCM图标顶部的蓝色栏以切换责备信息。见http://docs.sonarqube.org/display/SONAR/SCM+Information+tab