![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
小工具
sssssssssnake
奥力给
展开
-
代码风格检查
【代码】代码风格检查。原创 2024-07-16 11:25:44 · 258 阅读 · 0 评论 -
检查C++函数是否超过400行
【代码】检查C++函数是否超过400行。原创 2024-07-16 11:41:08 · 158 阅读 · 0 评论 -
抓取jenkins数据入库
抓取jenkins数据入库。原创 2024-07-16 16:03:00 · 309 阅读 · 0 评论 -
python脚本(三)
查询gitlab信息。原创 2024-07-12 16:56:01 · 136 阅读 · 0 评论 -
Gerrit 提交关联jira
可以针对每个项目配置是否启用 Jira 集成。下载链接:https://archive-ci.gerritforge.com/job/plugin-its-jira-bazel-master-stable-3.6/模板文件:/data/gerrit/gerrit_application/etc/its/templates/link.soy。配置文件:/data/gerrit/gerrit_application/etc/its/actions.config。2.4 添加插件配置。2.5 添加插件模板。原创 2024-07-16 11:13:11 · 195 阅读 · 0 评论 -
Gerrit 接入门禁
脚本文件:/data/gerrit/gerrit_application/script/check_commit_msg.py。hooks文件: /data/gerrit/gerrit_application/hooks/commit-received。目前gerrit没有接入门禁检查,希望能通过门禁自动检查commit message 合规性。2.1 添加hooks(根据需要调整)2.2 添加脚本(根据需要调整)二、操作步骤(不需要重启系统)原创 2024-07-16 11:16:27 · 174 阅读 · 0 评论 -
Jenkins kill重复任务
脚本的功能是查看当前所有task,如果发现同一个url触发的task,就会abort之前的task,只保留最新的。原创 2024-07-16 10:50:33 · 123 阅读 · 0 评论 -
gitlab将MR设置为draft
添加crontab定时任务:*/5 * * * * python3 send_gitlab_mr_note.py。这个脚本是判断一个MR如果2周不更新,会每两条添加一个note,两周后自动将这个MR设置成draft状态。config.cfg格式。原创 2024-07-16 10:48:25 · 242 阅读 · 0 评论 -
Gitlab kill rebase or merged jenkins job
这个脚本是遍历MR,如果发现这个MR是需要rebase的或者已经merge了,会自动kill相应的jenkins job。添加crontab定时任务:*/5 * * * * python3 kill_gitlab_job.py。开启 kill rebase任务可能影响jenkins调试,谨慎开启。原创 2024-07-16 10:59:02 · 387 阅读 · 0 评论 -
python脚本(二)
【代码】python脚本(二)原创 2024-07-12 16:41:09 · 123 阅读 · 0 评论 -
python脚本(Phabricator)
自动的创建ph的仓库,并配置导入gitlab仓库数据。查询仓库并写入文件input.txt给上面脚本使用。Phabricator修改build状态。Phabricator自动accept。原创 2024-07-12 17:23:36 · 203 阅读 · 0 评论 -
python脚本(一)
获取coverity projects和streams。检查第一个文件夹中的文件是否也在第二个文件夹里。按空行将文件内容划分为多个文件。比较两个文件的相似度。原创 2024-07-12 16:32:07 · 174 阅读 · 0 评论 -
文件格式转换
【代码】文件格式转换原创 2023-07-17 17:28:40 · 465 阅读 · 1 评论