简体   繁体   中英

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. I wasn't able to readily find this information from Sonar/TeamCity website, so just want to ask you guys.

Based on whatever I read, SonarQube plugin seems to work very well with Jenkins. Does it work at the same level with TeamCity as well? Are there any features that we can't use or is the user-experience any bad compared to Jenkins?

There's not a plugin for TeamCity in the same way there is for Jenkins. But you can add a build step in TeamCity to run the analysis via command line pretty easily. I use the sonar-runner utility (we have C# projects, but should work fine with java/maven, etc).

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/

Update: TeamCity now has a native SonarQube runner option, which you can read about here: https://confluence.jetbrains.com/display/TW/SonarQube+Integration

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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