build: 构建后清理workspace

This commit is contained in:
BugKing 2021-12-28 13:47:45 +08:00
parent cec4f8c809
commit 0ee0a4b6b0
1 changed files with 4 additions and 0 deletions

4
Jenkinsfile vendored
View File

@ -34,6 +34,10 @@ pipeline {
withCredentials([string(credentialsId: 'wechat-bot-webhook', variable: 'WEBHOOK')]) { withCredentials([string(credentialsId: 'wechat-bot-webhook', variable: 'WEBHOOK')]) {
qyWechatNotification failSend: true, mentionedId: '', mentionedMobile: '', webhookUrl: "$WEBHOOK" qyWechatNotification failSend: true, mentionedId: '', mentionedMobile: '', webhookUrl: "$WEBHOOK"
} }
cleanWs(cleanWhenNotBuilt: false,
deleteDirs: true,
disableDeferredWipeout: true,
notFailBuild: true)
} }
} }
} }