TeamCity And Sonar together?

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

8 comments
Comment actions Permalink

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.

0
Comment actions Permalink

I don't necessarily need TeamCity to directly support it, I'm just unsure if they overlap a bit in the duties they do.

0
Comment actions Permalink

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).

0
Comment actions Permalink

Thank you for feedback.
Could you explain briefly, how do you import Sonar results back to TeamCity?

0
Comment actions Permalink

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.

0
Comment actions Permalink

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.

0
Comment actions Permalink

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.

0
Comment actions Permalink

We found TeamCity's to be better ! Cheers.

0

Please sign in to leave a comment.