From 384ecdc51b07290724e8be53703fed280ba98e43 Mon Sep 17 00:00:00 2001 From: Administrator Date: Wed, 15 Jan 2025 03:38:47 +0000 Subject: [PATCH] Update web_jenkins --- web_jenkins | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web_jenkins b/web_jenkins index bc29bf8..55b0a19 100644 --- a/web_jenkins +++ b/web_jenkins @@ -3,6 +3,7 @@ pipeline { parameters { string(name: 'pid', defaultValue: '', description: '定制方案的Id') string(name: 'dist', defaultValue: '', description: '部署路径') + string(name: 'webhook', defaultValue: '1e734bc6-ab12-4272-8b15-cf92cb070f5b', description: '企微机器人key') } stages { stage('拉取代码') { @@ -44,7 +45,7 @@ pipeline { def currentTime = new Date().format('yyyy-MM-dd HH:mm:ss', TimeZone.getTimeZone('Asia/Shanghai')) sh """ - curl 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=1e734bc6-ab12-4272-8b15-cf92cb070f5b' \\ + curl 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=${params.webhook}' \\ -H 'Content-Type: application/json' \\ -d '{ "msgtype": "markdown",