多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
Jenkins继承Sonar Qube实现代码扫描需要先下载整合插件 ### Jenkins安装插件 | 下载Sonar Qube插件 | | --- | |![](https://img.kancloud.cn/97/a7/97a7eb45b2ccc72ca0b681e19f93ef6e_1920x790.png) | |![](https://img.kancloud.cn/15/dc/15dcd57d2507285a70d84c1db350a968_1920x852.png) | |![](https://img.kancloud.cn/c0/3d/c03decf8e7a0ee4143891c0c8d95c3df_1920x505.png)| ##### 7.4.2 Jenkins配置Sonar Qube * 开启Sonar Qube权限验证 | 开启Sonar Qube权限校验 | | --- | | ![](https://img.kancloud.cn/53/f2/53f234d15d7e5b7e218adcc03aa10606_1920x909.png) | * 获取Sonar Qube的令牌 | 获取令牌 | | --- | | ![](https://img.kancloud.cn/83/ac/83ac93ff169930a768f998d4eaa15c43_1920x484.png) | * 配置Jenkins的Sonar Qube信息 | ![](https://img.kancloud.cn/fb/9e/fb9ee604999588a0e1d77c7d32f06f22_1920x769.png) | | ![](https://img.kancloud.cn/c6/2a/c62a5ff00280485d2c9e9f942e883f0d_1920x756.png)| |![](https://img.kancloud.cn/38/5e/385efe0cd44f672e9e2b274627cb107f_1426x726.png)| ##### 7.4.3 配置Sonar-scanner * 将Sonar-scaner添加到Jenkins数据卷中并配置全局配置 | 配置Sonar-scanner | | --- | | ![](https://img.kancloud.cn/fd/c6/fdc62904db45797989647d08bd1aa531_1920x592.png) | * 配置任务的Sonar-scanner | 配置任务的Sonar-scanner | | --- | | ![](https://img.kancloud.cn/ab/18/ab18297fd5fc384d1126859fc08d1453_1920x634.png) | ##### 7.4.4 构建任务 | 构建任务 | | --- | | ![](https://img.kancloud.cn/4b/b1/4bb1afc780eea95eeff97566c405ee1a_1920x829.png)| | ![](https://img.kancloud.cn/a5/88/a588077f6b2add698aec6cd553963b89_1920x741.png) |