当前位置:网站首页>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包的tableStack函数基于分组变量生成统计分析表(包含描述性统计分析、假设检验、不同数据使用不同的统计量和假设检验方法)、自定义配置是否显示统计检验内容
- (四)Golang运算符
- Selenium element positioning
- Uniapp壁纸小程序源码/双端微信抖音小程序源码
- latex表格 在线生成
- MySQL事务简介、事务隔离级别
- Nebula's practice of intelligent risk control in akulaku: training and deployment of graph model
- Pat class a 1142 largest regiment
- STL——函数对象
- 丁总路由器设置以及401联网
猜你喜欢

从50亿图文中提取中文跨模态新基准Zero,奇虎360全新预训练框架超越多项SOTA

Recommend 6 open source projects of yyds

Demande de doctorat | xinchao Wang, Université nationale de Singapour

Swin Transformer代码讲解

Modify the configuration of the router connected to your computer. The website is 192.168.1.1

Google浏览器调试技巧

How to use the official documents of pytorch and torchvision

RMI, JNDI, LDAP introduction +log4j vulnerability analysis

软件工程 学生信息管理系统 结构化的需求分析

Fiddler抓包几种常用功能介绍(停止抓包、清空会话窗内容、过滤请求、解码、设置断点......)
随机推荐
使用ubantu时,遇见的一些小毛病和解决方法
C # final review programming question (guessed by the teacher)
反馈式编译
Swintransformer network architecture
JS using RSA encryption and decryption
Structural requirement analysis of software engineering student information management system
使用GCC的PGO(Profile-guided Optimization)优化整个系统
怎么在公司里面做好测试工作(做好测试工作)
卖疯了的临期产品:超低价、大混战与新希望
890. find and replace mode / Sword finger offer II 080 Combination with k elements
D. master router setting and 401 networking
每天5分钟玩转Kubernetes | 汇总
博士申請 | 新加坡國立大學Xinchao Wang老師招收圖神經網絡方向博士/博後
叶子分享站PHP源码下载
Uniapp wallpaper applet source code / double ended wechat Tiktok applet source code
C#期末复习编程题(老师猜的)
5、Embedding
Sudo of uabntu
如何查看、修改和删除SSH
快速入门scrapy爬虫框架




