4

有没有人设法让 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 构建身份验证令牌和用户永久令牌。

运行时我没有收到任何错误

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 发现的信息。

4

1 回答 1

2

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

/d:sonar.analysis.mode=issues

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

于 2018-04-13T08:59:31.100 回答