SonarQube钉钉推送插件(Golang)
source link: https://studygolang.com/articles/35171
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
双击运行即可
sonar-dingtalk-plugin-windows.exe
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 &
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