当前位置:网站首页>Gerrit triggers Jenkins sonarqube scan
Gerrit triggers Jenkins sonarqube scan
2022-06-12 17:06:00 【@TangXin】
List of articles
Environmental reference :Gerrit+2 Trigger Jenkins Mission
describe : Record Gerrit +2 After the operation , Automatic triggering Jenkins Execution of works ,SonarQube The tool statically scans the code , If the scan is successful ,Gerrit Automatically +1, If the scan fails ,Gerrit Automatically -1
1.Jenkins To configure
Jenkins Middle configuration Gerrit Trigger, When Jenkins The task was executed successfully ,Gerrit Code Review +1, When Jenkins Task execution failed ,Gerrit Code Review -1
2.Jenins- structure
sonar.projectKey=test1
sonar.projectName=test1
sonar.sourceEncoding=UTF-8
sonar.projectVersion=${BUILD_TAG}
sonar.language=python
sonar.sources=${WORKSPACE}/test
sonar.projectBaseDir=${WORKSPACE}/test
sonar.qualitygate.wait=true
sonar.qualitygate.timeout=3000
3.SonarQube Set quality threshold
SonarQube After setting the quality threshold for the project ,Jenkins in SonarQube When the task is executed , If the quality threshold is met , be Jenkins The task was executed successfully , Otherwise, the execution fails .
Gerrit+2 after , Automatic triggering Jenkins in SonarQube Task execution , When the quality threshold setting is not satisfied , Task execution failed
SonarQube Page shows , New code scan failed
4.Gerrit Show
Gerrit -1 operation
边栏推荐
- R语言使用epiDisplay包的summ函数计算dataframe中指定变量在不同分组变量下的描述性统计汇总信息并可视化有序点图(名称、有效值个数、均值、中位数、标准差、最大值、最小值)
- ShardingJDBC 分库分表详解
- R语言使用epiDisplay包的tabpct函数生成二维列联表并使用马赛克图可视化列联表(二维列联表、边际频数、以及按行、按列的比例)、自定义设置cex.axis参数改变轴标签数值的大小
- 布局管理中的sizePolicy的策略问题
- 力扣今日题926. 将字符串翻转到单调递增
- Demande de doctorat | xinchao Wang, Université nationale de Singapour
- R语言使用pdf函数将可视化图像结果保存到pdf文件中、使用pdf函数打开图像设备、使用dev.off函数关闭图像设备、自定义width参数和height参数指定图像的宽度和高度
- mysql语句
- idea如何设置导包不带*号
- The R language uses the tablestack function of epidisplay package to generate statistical analysis tables based on grouped variables (including descriptive statistical analysis, hypothesis test, diffe
猜你喜欢
性能优化之编译优化
Quick start sweep crawler framework
Qiushengchang: Practice of oppo commercial data system construction
丁总路由器设置以及401联网
Uniapp wallpaper applet source code / double ended wechat Tiktok applet source code
Programmers broke the news: 3 job hopping in 4 years, and the salary has tripled! Netizen: the fist is hard
CVPR 2022 | 元学习在图像回归任务的表现
快速入门scrapy爬虫框架
su直接切换到超级管理员模式,这样很多报错都可以避免了
男神女神投票源码 v5.5.21 投票源码
随机推荐
(四)Golang运算符
Where is it safer to open an account for thermal coal futures? How much is the thermal coal futures deposit?
Golang recursively encrypts and decrypts all files under the specified folder
Iscc-2022 part WP
JVM内存模型与本地内存
Unit sshd. service could not be found
JVM memory model and local memory
R language calculates data Table specifies the mean value of a numeric variable when the value of one grouped variable is fixed and another grouped variable
反馈式编译
布局管理中的sizePolicy的策略问题
R语言使用epiDisplay包的pyramid函数可视化金字塔图、基于已有的汇总数据(表格数据)可视化金字塔图
R语言使用pdf函数将可视化图像结果保存到pdf文件中、使用pdf函数打开图像设备、使用dev.off函数关闭图像设备、自定义width参数和height参数指定图像的宽度和高度
R语言使用epiDisplay包的tabpct函数生成二维列联表并使用马赛克图可视化列联表(二维列联表、边际频数、以及按行、按列的比例)、自定义设置cex.axis参数改变轴标签数值的大小
Possible problems of long jump in gaussdb
Latex table online generation
Selenium element positioning
启牛开的证券账户安全吗?合法吗?
Swin Transformer代码讲解
su直接切换到超级管理员模式,这样很多报错都可以避免了
性能优化之编译优化