Can Sonar metrics for a project be viewed on Bamboo or JIRA somehow?

Sean Wilson September 9, 2012

We're using JIRA OnDemand and have been testing Bamboo as a self hosted server. We are evaluating whether to move to OnDemand Bamboo because this is the only we can use the JIRA + Bamboo integration features.

For each of our projects, we would like if we could display Sonar code metrics in some convenient place e.g. such as on the JIRA project page or the Bamboo project page. Can this be done? How do our options change if we move to OnDemand Bamboo?

We've been testing the following Sonar plugin that has gadgets available for it that displays Sonar metrics:

http://docs.marvelution.com/display/BAMSON/Documentation+Home

However, it isn't made clear how you add these gadgets to your project pages and the code metric widget that appears on the Sonar tab this plugin adds to Bamboo doesn't work on Bamboo 4.2. Also, OnDemand Bamboo does not support custom plugins such as this Sonar plugin.

2 answers

0 votes
Stephane Oberlechner
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 30, 2013

Hi Sean,

Sorry for the delay, but we had the same concerns 3 years ago and we did it with CAST Software (a sonar competitor), under JIRA (not "on demand" for us)

We build our own jira "tab panel plugin" to get the code metrics, to create a tab "CAST Code quality" close to the tab "Subversion commit".

By this way, on the jira issue, you have the code updated, added or modified (subversion) and the quality metrics refering to this code (cyclomatic complexity, nb of "select *"...) . For the Project officer, this is a good way to say "I close / don't close the Issue".

You can see the result here (slide #12) :

0 votes
James Dumay
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 6, 2012

If you want to see Sonar metrics within Bamboo, best file an issue with Marvelution (creators of the sonar plugin) to come up with with a way of doing that. As you have found out, we do not have any way for this plugin to be installed on OnDemand.

Suggest an answer

Log in or Sign up to answer