使用 Python 计算签名,再用 http post 的方法发送通知:
DingTalk.send_message({
"msgtype": "markdown",
"markdown": {
"title": "测试标题",
"text": "测试消息开始 @139xxxxxxxx 测试消息结束",
},
"at": {
"atMobiles": ['139xxxxxxxx']
}
})
这样得到的消息大概是这样 (抱歉,不方便截图)
但是使用 Jenkins 钉钉插件,得到的的消息是这样的
测试消息开始 @被通知人 测试消息结束
@被通知人
官方文档也有样例: https://jenkinsci.github.io/dingtalk-plugin/guide/freestyle.html
