测试打包通知1

Test_HIR_Net8
hang 2026-02-05 13:11:45 +08:00
parent da7727c4b2
commit 5cab834978
1 changed files with 16 additions and 24 deletions

View File

@ -1,11 +1,10 @@
kind: pipeline
type: ssh
name: ssh-linux-test-hir-publish
platform:
os: Linux
arch: 386
os: linux
arch: amd64
clone:
disable: true
@ -34,30 +33,23 @@ steps:
COLOR="warning"
fi
curl -X POST 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=cdd97aab-d256-4f07-9145-a0a2b1555322' \
-H 'Content-Type: application/json' \
-d "{
\"msgtype\": \"markdown\",
\"markdown\": {
\"content\": \"${MSG}\n
curl -X POST "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=cdd97aab-d256-4f07-9145-a0a2b1555322" \
-H "Content-Type: application/json" \
-d @- <<EOF
{
"msgtype": "markdown",
"markdown": {
"content": "${MSG}\n
> 项目:${DRONE_REPO_NAME}\n
> 分支:${DRONE_BRANCH}\n
> 构建号:${DRONE_BUILD_NUMBER}\n
> 状态:<font color=\\\"${COLOR}\\\">${STATUS}</font>\"
> 状态:<font color=\"${COLOR}\">${STATUS}</font>"
}
}"
}
EOF
when:
status: [ success, failure ]
trigger:
branch:
- Test_HIR_Net8