简体   繁体   English

TeamCity的SonarQube与Jenkins的SonarQube

[英]SonarQube on TeamCity vs SonarQube on Jenkins

We are looking to switch from Jenkins to TeamCity and I am worried about SonarQube integration with TeamCity. 我们希望从Jenkins切换到TeamCity,我担心SonarQube与TeamCity的集成。 I wasn't able to readily find this information from Sonar/TeamCity website, so just want to ask you guys. 我无法从Sonar / TeamCity网站上找到这些信息,所以只想问你们。

Based on whatever I read, SonarQube plugin seems to work very well with Jenkins. 根据我读到的内容,SonarQube插件似乎与Jenkins一起工作得非常好。 Does it work at the same level with TeamCity as well? 它与TeamCity的工作级别是否相同? Are there any features that we can't use or is the user-experience any bad compared to Jenkins? 与Jenkins相比,是否有任何我们无法使用的功能或用户体验有什么不好?

There's not a plugin for TeamCity in the same way there is for Jenkins. TeamCity没有像Jenkins一样的插件。 But you can add a build step in TeamCity to run the analysis via command line pretty easily. 但您可以在TeamCity中添加构建步骤,以便通过命令行轻松运行分析。 I use the sonar-runner utility (we have C# projects, but should work fine with java/maven, etc). 我使用声纳运行器实用程序(我们有C#项目,但应该可以正常使用java / maven等)。

If you want the per-build new issues report, you can utilize the Issues Report plugin to add a tab to the TeamCity build results, as I described here: https://www.wrightfully.com/adding-sonarqube-results-to-the-teamcity-build-page/ 如果您需要按构建新问题报告,可以使用“问题报告”插件向TeamCity构建结果添加选项卡,如下所述: https//www.wrightfully.com/adding-sonarqube-results-to -the-TeamCity的建造页/

Update: TeamCity now has a native SonarQube runner option, which you can read about here: https://confluence.jetbrains.com/display/TW/SonarQube+Integration 更新: TeamCity现在有一个原生的SonarQube跑步选项,你可以在这里阅读: https ://confluence.jetbrains.com/display/TW/SonarQube+Integration

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM