milvus/ci/jenkinsfile/cleanup_dev.groovy
quicksilver 8c844d587d helm clean up
Former-commit-id: 0cf0b16f1a736d001b96399bfd16d97db0e5fa40
2019-07-12 23:42:40 +08:00

15 lines
429 B
Groovy

try {
sh "helm del --purge ${env.JOB_NAME}-${env.BUILD_NUMBER}"
if (currentBuild.result == 'ABORTED') {
throw new hudson.AbortException("Dev Test Aborted !")
} else if (currentBuild.result == 'FAILURE') {
error("Dev Test Failure !")
}
} catch (exc) {
sh "helm del --purge ${env.JOB_NAME}-${env.BUILD_NUMBER}"
updateGitlabCommitStatus name: 'Cleanup Dev', state: 'failed'
throw exc
}