Sonar for Bamboo插件在SonarQube 6.7后的分支支持及分析功能咨询
Answers to Your Sonar for Bamboo & SonarQube 6.7 Questions
Let me walk you through these two questions based on hands-on experience with integrating SonarQube and Bamboo:
1. Does the Sonar for Bamboo plugin support branch functionality after SonarQube 6.7?
- Short answer: Yes, but only if you're using a plugin version updated for SonarQube 6.7+, and your SonarQube instance has branch support enabled.
- For SonarQube 6.7 to 7.8: Branch analysis was a commercial-only feature back then—you needed to install the official Branch Plugin (included in Developer Edition or higher) on your SonarQube server. The Sonar for Bamboo plugin hooks into this to handle branch builds.
- For SonarQube 7.9 and later: Community Edition added native branch support, so no extra plugin is needed. As long as your Sonar for Bamboo plugin is up-to-date, it’ll work seamlessly with branch analysis here.
- If your SonarQube instance lacks branch support (no plugin for older commercial versions, or using a pre-7.9 Community Edition), the Sonar for Bamboo plugin can’t run branch-specific analysis—no matter how new the plugin is.
2. Will Sonar for Bamboo's branch analysis still work after upgrading to SonarQube 6.7 without installing the branch plugin?
- Nope, it’ll break or behave incorrectly. Here’s the breakdown:
- SonarQube 6.7 retired the old
sonar.branchparameter the plugin used to rely on. Without the branch plugin (or native branch support in newer versions), SonarQube has no way to distinguish between different branches. - When you run a branch build via Sonar for Bamboo in this setup, all analysis results will merge into the main project’s default branch. You’ll lose branch-specific metrics, overwrite previous results, and essentially lose all value of branch analysis.
- To fix this, you either need to install the Branch Plugin (if on SonarQube 6.7-7.8 commercial) or upgrade to SonarQube 7.9+ Community Edition for native branch support.
- SonarQube 6.7 retired the old
内容的提问来源于stack exchange,提问作者Gustavs
相关产品推荐
相关产品推荐

