webhook-tools/scripts/notify
2024-08-30 18:11:42 +08:00
..
config.yaml add interface and fix 2024-08-16 17:48:07 +08:00
consts.go add interface and fix 2024-08-16 17:48:07 +08:00
go.mod add interface and fix 2024-08-16 17:48:07 +08:00
go.sum add interface and fix 2024-08-16 17:48:07 +08:00
main.go fix notify 2024-08-30 18:11:42 +08:00
Readme.md add interface and fix 2024-08-16 17:48:07 +08:00

目的

jenkins通知

使用方法

## post可以是json格式字符串也可以是某个json文件(如: test.json)。
# 但必须包含title和message字段file字段可选带有file字段时会发送一个带有url的富文本到飞书机器人提供下载或在线查看 文件会推送到cf的r2
# 举例如下:
# json 格式
curl -XPOST -H "Content-Type: application/json" -d "{\"title\": \"测试环境\",\"message\": \"xxx更新完成\"}" https://webhook-ops.shasoapp.com/hooks/jenkins_notify
# json文件
curl -XPOST -H "Content-Type: application/json" -d "@test.json" https://webhook-ops.shasoapp.com/hooks/jenkins_notify