build: 构建后清理workspace

This commit is contained in:
BugKing 2021-12-28 13:47:45 +08:00
parent f29aab8e52
commit 51bb1a294a
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')]) {
qyWechatNotification failSend: true, mentionedId: '', mentionedMobile: '', webhookUrl: "$WEBHOOK"
}
cleanWs(cleanWhenNotBuilt: false,
deleteDirs: true,
disableDeferredWipeout: true,
notFailBuild: true)
}
}
}