endless
endless

Reputation: 3463

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?

Upvotes: 3

Views: 3826

Answers (1)

John Wright
John Wright

Reputation: 4607

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

Upvotes: 7

Related Questions