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

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:

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

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.

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,646 views 18 21
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you