add interface and fix

This commit is contained in:
“xHuPo” 2024-08-16 17:48:07 +08:00
parent bb46f5adc4
commit c16ee9ca2c
13 changed files with 573 additions and 89 deletions

View file

@ -13,7 +13,7 @@
name: -a
- source: url
name: account
# 华为消息通知
- id: hwsmn
execute-command: "/etc/webhook/scripts/hwsmn/hwsmn"
http-methods:
@ -24,8 +24,9 @@
- source: payload
name: message
# 华为tls更新(自建证书)
- id: hwtlsupdate
execute-command: "/etc/webhook/scripts/tlsupdatev1/tlsupdate"
execute-command: "/etc/webhook/scripts/tlsupdate/tlsupdate"
pass-arguments-to-command:
- source: string
name: -a
@ -35,3 +36,27 @@
name: -i
- source: url
name: id
- id: jenkins_notify
execute-command: "/etc/webhook/scripts/notify/notify"
http-methods:
- "POST "
pass-arguments-to-command:
- source: string
name: -m
- source: payload
name: message
- source: string
name: -t
- source: payload
name: title
pass-file-to-command:
- source: payload
name: message
envname: MSG
- source: payload
name: title
envname: TITLE
- source: payload
envname: FILE
name: file
base64decode: true