TeamCity And Sonar together? Follow
http://www.sonarsource.org/
Do they overlap? Or fit well together? Sonar seems not so much a CI but an analysis tool. Does anyone use both together? I'd like to get some more code analysis for our c# projects. Sonar looks like it has some nice fancy charts and what not. Thoughts?
Nick
Please sign in to leave a comment.
At the moment it's not integrated directly. We have this feature request in TW-12264, please vote.
Right now you can start analisys using Command line build step or any other runner, and import HTML reports into build results.
I don't necessarily need TeamCity to directly support it, I'm just unsure if they overlap a bit in the duties they do.
TeamCity and Sonar don't really overlap. One is a continuous integration server and the
other is a project metrics tool.
TeamCity manages your builds, testing etc. Sonar track your project stats over time: complexity, code coverage, lines of code, classes, number of violations etc.
We use both. TC to do the builds - including the Maven task to send stats to Sonar (Sonar Maven plugin).
Thank you for feedback.
Could you explain briefly, how do you import Sonar results back to TeamCity?
We don't show any reports in TeamCity. That's what the Sonar is for. We just run builds in TeamCity. In other words, we just run mvn sonar:sonar in TeamCIty. All the project metrics reports are in Sonar. All you can see in TC is if the maven sonar task has succeeded or failed.
I guess you can put a link from TC build results to your Sonar if you want.
We use TeamCity and Sonar. It's just a case of running mvn goal sonar:sonar.
To view your reports, you'll have to look on the Sonar server page dashboard.
TeamCity's duplicate finder step could be an overlap if you are using such a
step as Sonar also detects code duplicates.
Interesting, I'm going to have to get this setup. I think I'd run both duplicate finders, just out of curiosity to see how they compare.
Thanks.
We found TeamCity's to be better ! Cheers.