【问题标题】:Can't see line based SCM blame infomation in Sonar在声纳中看不到基于行的 SCM 责备信息
【发布时间】:2015-12-18 08:19:59
【问题描述】:

我目前正在尝试最新 (5.1.2) SonarQube 中的 SCM 归咎功能。我的问题是检索到的责备只显示整个文件的最新提交。这意味着一个用户负责整个文件。根据documentation,应该可以有基于行的 SCM 信息 - 每行都有提交 ID、日期和用户。

我们正在将 Perforce 用于 SCM。

在 TeamCity 中,它被设置为带有流动参数的 maven 构建步骤:

-Dsonar.jdbc.url=%system.sonar.staging.jdbc.url%
-Dsonar.jdbc.driverClassName=net.sourceforge.jtds.jdbc.Driver
-Dsonar.jdbc.dialect=postgresql
-Dsonar.jdbc.username=%system.sonar.staging.jdbc.username%
-Dsonar.jdbc.password=%system.sonar.staging.jdbc.password%
-Dsonar.host.url=%system.sonar.staging.host.url%
-Dsonar.scm.forceReloadAll=true
-Dsonar.perforce.port=%vcsroot.port%
-Dsonar.perforce.username=%vcsroot.user%
-Dsonar.perforce.password.secured=%vcsroot.user%
-Dsonar.scm.provider=perforce
-Dsonar.perforce.clientName=%env.P4Workaround%
-Dmaven.scm.perforce.clientspec.name=%env.P4Workaround%d%

我是否需要调整一些东西,否则这可能是 SonarQube 中的错误?

【问题讨论】:

  • 既然您使用 Perforce 作为您的 SCM,为什么不使用 Time-Lapse View?
  • 是的,这是可能的。但我的目的是在 Web UI 上呈现结果,而无需打开客户端、连接到服务器、查找文件等。根据文档,它应该是可能的,它只是不起作用。

标签: sonarqube teamcity perforce blame


【解决方案1】:

您使用的 SonarQube Perforce 插件的版本是什么。这个问题应该已经在版本 1.2 中修复。但是您可能必须从头开始分析项目才能看到变化(在 UI 中删除项目然后进行新的分析)。

【讨论】:

猜你喜欢
  • 2015-02-14
  • 1970-01-01
  • 2016-12-24
  • 1970-01-01
  • 1970-01-01
  • 2019-02-24
  • 1970-01-01
  • 1970-01-01
  • 2022-10-18
相关资源
最近更新 更多