SonarQube on TeamCity vs SonarQube on Jenkins

We want to switch from Jenkins to TeamCity, and I am concerned about the integration of SonarQube with TeamCity. I couldn’t easily find this information from the Sonar / TeamCity website, so I just want to ask you guys.

Based on what I read, the SonarQube plugin seems to work very well with Jenkins. Does it work on the same level as TeamCity? Are there any features that we cannot use, or is this a bad user compared to Jenkins?

+3
source share
1 answer

There is no plugin for TeamCity as well as for Jenkins. But you can add a build step to TeamCity to easily perform analysis through the command line. I use the sonar-runner utility (we have projects in C #, but they should work well with java / maven, etc.).

If you need a report on new issues for each build, you can use the Report 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 Runner option for SonarQube, which you can read here: https://confluence.jetbrains.com/display/TW/SonarQube+Integration

+7
source

All Articles