build: 构建后执行 mvn clean

This commit is contained in:
CaptainB 2022-03-15 18:09:39 +08:00 committed by 刘瑞斌
parent 03150ff1c5
commit e97cbeb964
1 changed files with 1 additions and 4 deletions

5
Jenkinsfile vendored
View File

@ -33,10 +33,7 @@ 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)
sh "./mvnw clean"
}
}
}