上源和 SonarQube

Upsource and SonarQube

有没有人设法让 SonarQube 与 Upsource 一起工作?我已经为 SonarQube 下载了 upsource-sonar-plugin-0.1-SNAPSHOT.jar 插件,并在我通过 /s 开关添加的 SonarQube 设置文件中设置了以下内容

<Property Name="sonar.upsource.url">url to my upsource</Property>
<Property Name="sonar.upsource.project">my upsouce project id</Property>
<Property Name="sonar.upsource.revision">svn revision number</Property>
<Property Name="sonar.upsource.token">See below</Property>

对于 sonar.upsource.token 我已经尝试了 Upsource Build 身份验证令牌和用户永久令牌。

当我 运行

时我没有收到任何错误
SonarQube.Scanner.MSBuild.exe end /d:sonar.login="*******"

并在输出中得到以下内容

INFO: More about the report processing at http://**********
INFO: Executing post-job Push issues to Upsource

但是,我在 Upsource 中没有看到任何关于 SonarQube 发现的信息。

好的,我已经设法让它工作了。您需要将以下内容添加到开始

/d:sonar.analysis.mode=issues

设置。是的,我知道这在 SonarQube 的 6.6 版中已贬值,但是它可以正常工作。我已经针对 SonarQube 的 6.5、6.7 和 7.0 版本进行了测试。