测试打包通知1
parent
da7727c4b2
commit
5cab834978
|
|
@ -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
|
||||
|
|
@ -19,7 +18,7 @@ server:
|
|||
steps:
|
||||
- name: publish-test-hir
|
||||
commands:
|
||||
- bash /opt/1panel/xc-deploy-new/Test_HIR/devops-publish/test-branch-to-test.sh || echo "publish failed"
|
||||
- bash /opt/1panel/xc-deploy-new/Test_HIR/devops-publish/test-branch-to-test.sh || echo "publish failed"
|
||||
|
||||
- name: notify-wecom
|
||||
commands:
|
||||
|
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue