Jenkinsfile: move cleaning action in post/cleanup section (#31437)

This commit is contained in:
Benjamin Dauvergne 2019-03-21 11:37:58 +01:00
parent 4c04187f47
commit 31dc47946d
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -39,13 +39,13 @@ pipeline {
}
post {
always {
sh "rm -rf ${env.TMPDIR}"
script {
utils = new Utils()
utils.mail_notify(currentBuild, env, 'admin+jenkins-authentic@entrouvert.com')
}
}
success {
cleanup {
sh "rm -rf ${env.TMPDIR}"
cleanWs()
}
}