将 SonarQube 与 Bitbucket 存储库连接起来

Connect SonarQube with Bitbucket repo

我创建了一个新的 SonarCube 项目并想将它连接到 BitBucket 中的存储库。我知道有一个用于 BitBucket 的 Sonar 插件可以查看 Bitbucket 中的统计信息。但是,我想在 SonarQube 中查看这些统计数据。 对此的任何帮助表示赞赏。谢谢

sonarqube 和 bitbucket 单独不会生成任何数据,只要您没有生成这些数据的某种构建工具。您需要一个 Sonarqube 扫描仪,它会扫描您的代码库并首先将其提交给 sonarqube。我建议你阅读那些 "Answers"

Difference between SonarQube server and Scanner

first the Sonarqube-server, which is holding the configuration of projects, quality gates and quality profiles (aka rulesets). The purpose of the server is the displaying part and managing part. It will show you all your issues, and it will allow you to manage it. BUT it will not analyse your source code.

second the scanner. This is the part which is analyzing your source code. It will ask the server for the quality profile and its rules. It will go through your configured files and try to look for those issues and it will generate a report, which will be commited to the sonarqube-server to be evaluated and displayed

Integrate Sonarqube and bitbucket (old version, before the plugin) or the sonarqube documentation for the new plugin