ci:传奇服务端 Jenkins构建增加 Telegram 消息通知
- 在 Jenkins 构建成功后,通过 curl 发送消息到 Telegram - 通知内容为"传奇服务端构建完成!" - 使用了特定的 bot token 和 chat_id
This commit is contained in:
@@ -28,6 +28,14 @@ pipeline {
|
||||
post{
|
||||
success {
|
||||
echo 'Deployment finished successfully.'
|
||||
sh """
|
||||
curl 'https://api.telegram.org/bot7816434196:AAFtmbUYpUIwcb_SvBnJY0guPIOLCxp2a5s/sendMessage?key=1e734bc6-ab12-4272-8b15-cf92cb070f5b' \\
|
||||
-H 'Content-Type: application/json' \\
|
||||
-d '{
|
||||
"chat_id": "6779541681",
|
||||
"text":"传奇服务端构建完成!",
|
||||
}'
|
||||
"""
|
||||
}
|
||||
failure {
|
||||
echo 'Deployment failed.'
|
||||
|
||||
Reference in New Issue
Block a user