CICD Jenkins持续集成(企业微信消息提醒)
2020-03-19 本文已影响0人
钓小鱼的猫
Jenkins构建后执行shell命令
安装插件 Post Build task
调用企业微信接口
https://work.weixin.qq.com/api/doc/90000/90136/91770#%E5%9B%BE%E7%89%87%E7%B1%BB%E5%9E%8B
配置使用
curl 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxxxxxxxxxx' \
-H 'Content-Type: application/json' \
-d '
{
"msgtype": "news",
"news": {
"articles" : [
{
"title" : "测试环境二维码",
"description" : "测试环境",
"url" : "'${appBuildURL}'",
"picurl" : "'${buildQRCodeURL}'"
}
]
}
}'