【干货,Jenkins系列之六整合SonarQube
调用
提交审查结果
保存审查结果
Jenkins
SonarQube Scanner
SonarQube
MySql
安装完插件之后需要添加一个SonarQube的凭证,如下图:
二、配置
配置SonarQube服务地址,并关闭SonarQube的审查结果上传到SCM功能。
三、创建项目验证
以之前创建的Maven项目为例,添加构建步骤,并加入Sonar执行配置参数。
配置文件具体内容如下:
# must be unique in a given SonarQube instance sonar.projectKey=iot-service # this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1. sonar.projectName=iot-service sonar.projectVersion=1.0 # Path is relative to the sonar-project.properties file. Replace "" by "/" on Windows. # This property is optional if sonar.modules is set. sonar.sources=. sonar.exclusions=**/test/**,**/target/** sonar.java.source=1.8 sonar.java.target=1.8 # Encoding of the source code. Default is default system encoding sonar.sourceEncoding=UTF-8
配置完成之后启动构建,在SonarQube上查看检查结果。
最后在出来放一波福利吧!希望可以帮助到大家!
千千万万要记得:多刷题!!多刷题!!
之前算法是我的硬伤,后面硬啃了好长一段时间才补回来,算法才是程序员的灵魂!!!!
(1)多线程(这里以多线程为代表,其实整理了一本JAVA核心架构笔记集)
(2)刷的算法题(还有左神的算法笔记)
(3)面经+真题解析+对应的相关笔记(很全面)
(4)视频学习(部分)
ps:当你觉得学不进或者累了的时候,视频是个不错的选择
其实以上我所分享的所有东西,有需要的话我这边可以免费分享给大家,但请一定记住获取方式:
转存中…(img-bCPFYeoE-1628306911307)]
其实以上我所分享的所有东西,有需要的话我这边可以免费分享给大家,但请一定记住获取方式:
在这里,最后只一句话:祝大家offer拿到手软!!