Update web_jenkins
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user