10
SonarQube快速集成钉钉群机器人
source link: https://segmentfault.com/a/1190000037656665
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
SonarQube 钉钉机器人插件
仓库地址
https://github.com/viodo/sonar-dingtalk-plugin
觉得有用的别忘了点个star哦 _
使用方法
1. 部署插件
Windows
Linux
wget https://github.com/viodo/sonar-dingtalk-plugin/releases/download/v1.0.0/sonar-dingtalk-plugin-1.0.0-linux chmod 777 sonar-dingtalk-plugin-1.0.0-linux nohup ./sonar-dingtalk-plugin-1.0.0-linux &
Mac
wget https://github.com/viodo/sonar-dingtalk-plugin/releases/download/v1.0.0/sonar-dingtalk-plugin-1.0.0-mac chmod 777 sonar-dingtalk-plugin-1.0.0-mac nohup ./sonar-dingtalk-plugin-1.0.0-mac &
2. 添加钉钉群机器人
在钉钉群设置->智能群助手->添加自定义机器人
复制 webhook
地址中的access_token=后面的内容,后面会用到
自定义关键词
,添加
BUG
和
漏洞
3. 设置SonarQube
点击
项目配置
下的
网络调用
点击右上角 创建
按钮
名称随便填,URL填 http://插件部署电脑的IP:9001/dingtalk?access_token=这里填刚才复制的机器人的token
4. 大功告成
在SonarQube完成代码扫描后,就会推送消息到钉钉了
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK