build: Jenkinsfile 增加企业微信通知

This commit is contained in:
BugKing 2020-12-21 10:43:12 +08:00
parent 0c2e372a13
commit 3802dfc7fe
1 changed files with 7 additions and 0 deletions

7
Jenkinsfile vendored
View File

@ -24,5 +24,12 @@ pipeline {
sh "docker push ${IMAGE_FREFIX}/${IMAGE_NAME}:\${TAG_NAME:-\$BRANCH_NAME}" sh "docker push ${IMAGE_FREFIX}/${IMAGE_NAME}:\${TAG_NAME:-\$BRANCH_NAME}"
} }
} }
stage('Notification') {
steps {
withCredentials([string(credentialsId: 'wechat-bot-webhook', variable: 'WEBHOOK')]) {
qyWechatNotification failSend: true, mentionedId: '', mentionedMobile: '', webhookUrl: '${WEBHOOK}'
}
}
}
} }
} }