集成sonarqube
内容
- SonarQube基础简介
- 配置GitLabCI代码扫描
- 配置GitLabCI合并扫描
准备工作
参考链接:https://docs.sonarqube.org/latest/analysis/gitlab-cicd/
扩展插件: https://github.com/mc1arke/sonarqube-community-branch-plugin/releases
Gitlab内置环境变量: http://192.168.1.200:30088/help/ci/variables/README#variables
在SonarQube中创建项目组添加用户,为用户分配权限。使用用户token分析扫描项目。