无法将 TFS 2015 与 SonarQube 集成
Not able to integrate TFS 2015 with SonarQube
目前我正在尝试将 TFS 2015 与 SonarQube 集成,但没有结果,情况是没有提到如何更新构建代理以考虑 SonarQube.MSBuild.Runner。
当我开始集成这两个系统时,错误是 c# sonar 插件版本与 SonarQube runner 不兼容,因此决定覆盖 sonarqube prebuild 的 Build agent 中包含的所有文件
C:***\Agent\tasks\SonarQubePreBuild.0.35\MSBuild.SonarQube.Runner-1.1 使它工作,但我不确定这是否是正确的工作方式。
附加信息:
TFS版本:TFS 2015更新4.1
SonarQube 版本:6.7.3
SonarQube C#插件版本:7.0.1.4822
MSbuild 版本:15.0
MSBuild SonarQube 扫描仪:4.2.0.1214-net46
编辑:
只是想让你知道,我没有更新代理,我使用的是安装 Sonarqube 之前使用的代理。
这是一个兼容性问题。实际上,错误消息已经表明正如您提到的“c# sonar plugin version is not compatible with the SonarQube runner
”。
只需检查 SonarQube Extension for VSTS/TFS Compatibility and Compatibility with the SonarQube C# plugin
Versions 3.x are compatible with:
- TFS 2015 Update 3
- TFS 2017 Update 1
- VSTS
Versions 4.x are compatible with:
- TFS 2017 Update 2+
- TFS 2018
- VSTS
Note: if you are running on TFS earlier than 2017 Update 2, you will need to download and manually install the latest 3.x version of
the VSIX. You can download the VSIX on the "Releases" page of
the GitHub repository You can browse the documentation on SonarQube
Extension 3.0
因此,在您的方案 (TFS 2015 Update4.1) 中,您需要按照 "SonarQube Extension 3.0" documentation page.
上的说明进行操作
以下文章供您参考:
INTEGRATE SONARQUBE IN YOUR TFS OR VSTS BUILD
更新:
还是兼容性问题,根据这个Plugin Version Matrix SonarQube Version: 6.7.3
不兼容c# plugin 6.6
,兼容C# plugin 7.1
。
在您的情况下,我建议您使用 c# plugin 6.6
降级到 SonarQube server v6.x
,因为您必须安装 "SonarQube Extension 3.0"
才能支持 TFS 2015。
目前我正在尝试将 TFS 2015 与 SonarQube 集成,但没有结果,情况是没有提到如何更新构建代理以考虑 SonarQube.MSBuild.Runner。 当我开始集成这两个系统时,错误是 c# sonar 插件版本与 SonarQube runner 不兼容,因此决定覆盖 sonarqube prebuild 的 Build agent 中包含的所有文件 C:***\Agent\tasks\SonarQubePreBuild.0.35\MSBuild.SonarQube.Runner-1.1 使它工作,但我不确定这是否是正确的工作方式。
附加信息:
TFS版本:TFS 2015更新4.1
SonarQube 版本:6.7.3
SonarQube C#插件版本:7.0.1.4822
MSbuild 版本:15.0
MSBuild SonarQube 扫描仪:4.2.0.1214-net46
编辑: 只是想让你知道,我没有更新代理,我使用的是安装 Sonarqube 之前使用的代理。
这是一个兼容性问题。实际上,错误消息已经表明正如您提到的“c# sonar plugin version is not compatible with the SonarQube runner
”。
只需检查 SonarQube Extension for VSTS/TFS Compatibility and Compatibility with the SonarQube C# plugin
Versions 3.x are compatible with:
- TFS 2015 Update 3
- TFS 2017 Update 1
- VSTS
Versions 4.x are compatible with:
- TFS 2017 Update 2+
- TFS 2018
- VSTS
Note: if you are running on TFS earlier than 2017 Update 2, you will need to download and manually install the latest 3.x version of the VSIX. You can download the VSIX on the "Releases" page of the GitHub repository You can browse the documentation on SonarQube Extension 3.0
因此,在您的方案 (TFS 2015 Update4.1) 中,您需要按照 "SonarQube Extension 3.0" documentation page.
上的说明进行操作以下文章供您参考:
INTEGRATE SONARQUBE IN YOUR TFS OR VSTS BUILD
更新:
还是兼容性问题,根据这个Plugin Version Matrix SonarQube Version: 6.7.3
不兼容c# plugin 6.6
,兼容C# plugin 7.1
。
在您的情况下,我建议您使用 c# plugin 6.6
降级到 SonarQube server v6.x
,因为您必须安装 "SonarQube Extension 3.0"
才能支持 TFS 2015。