add interface and fix
This commit is contained in:
parent
bb46f5adc4
commit
c16ee9ca2c
13 changed files with 573 additions and 89 deletions
13
scripts/notify/Readme.md
Normal file
13
scripts/notify/Readme.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
## 目的
|
||||
jenkins通知
|
||||
|
||||
## 使用方法
|
||||
```shell
|
||||
## 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
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue