We use a custom quality profile in Sonar, but despite enabling Quality Gate in Provisioning, the analysis is still using the Default Profile.
We have verified:
build 19-Oct-2016 23:06:39 323 files ignored because of inclusion/exclusion patterns build 19-Oct-2016 23:06:39 Quality profile for java: Sonar way build 19-Oct-2016 23:06:40 Sensor Lines Sensor
Since the log suggests that the analysis is done using the default profile, I wonder how profile copying is implemented. The Bamboo task triggers the analysis. Bitbucket just loads the post-analysis results from Sonar. If the profile copying is managed by sonar4stash, how does sonar4stash "tell" the bamboo task what the source profile to copy during the analysis?
We are on:
Quality profile provisioning works as follows: Sonar4Stash will use the quality profile of the configured master branch in the plug-in's repository settings. Whenever it detects that a new branch was created, it will create a new SonarQube project for it and configure its quality profile to be the same as the one from the master branch.
If this process didn't work in your case, do you see any errors in the Stash application log when the branch was created?
You are right. When new branches are created, the addon created Sonar projects and copied the master project's quality profile. There were some old branches that existed before installing the addon. Those branches' Sonar projects don't have the master project's quality profile.
The addon's behavior matches your explanation. However, we observed that quality gates are not copied. No errors in Bitbucket's logs. Is this a bug?
Hi all! My name is Miles and I work on the Marketplace team. We’re looking for better ways to recommend and suggest apps that are truly crowd favorites, so of course we wanted to poll the Community. ...
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!
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