1、创建钉钉机器人
自定义机器人接入 - 钉钉开放平台
群设置 >>
智能群助手 >>
添加机器人 >> 自定义webhook机器人
![](https://img.php1.cn/3cd4a/1eebe/cd5/4fae50aeee651818.webp)
输入自定义钉钉机器人名字和选择必要的安全设置。
![](https://img.php1.cn/3cd4a/1eebe/cd5/0d80e8a685a9a87b.png)
![](https://img.php1.cn/3cd4a/1eebe/cd5/43a754c811e7ec5c.webp)
注意:复制上面的加密信息和Webhook,后面在jenkins配置钉钉机器人需要用。
2、安装钉钉机器人插件
安装钉钉机器人插件DingTalk
介绍 | 钉钉机器人插件
![](https://img.php1.cn/3cd4a/1eebe/cd5/eec57030b649a106.webp)
3、配置钉钉机器人
Configure System >> 钉钉
![](https://img.php1.cn/3cd4a/1eebe/cd5/bcafc120671304eb.webp)
![](https://img.php1.cn/3cd4a/1eebe/cd5/d942b7ec373849c3.webp)
![](https://img.php1.cn/3cd4a/1eebe/cd5/8170a21e8dddfd22.webp)
4、在 freestyle 项目中使用钉钉通知
项目 >> 配置 >> General >>勾选钉钉机器人
![](https://img.php1.cn/3cd4a/1eebe/cd5/011ac27956d007f0.webp)
测试一下:保存项目配置后,点击立即构建,构建完成后查询钉钉群是否有钉钉机器人通知。
![](https://img.php1.cn/3cd4a/1eebe/cd5/857a46d091981bac.webp)
5、在 pipeline 中使用钉钉通知
reference:
介绍 | 钉钉机器人插件