milvus/ci/jenkinsfile/cleanup_dev.groovy
quicksilver 9ec7b773c3 MS-161 - Add CI / CD Module to Milvus Project
Former-commit-id: 16869771664aeea633d14f2db05c7a6fb8441e64
2019-07-05 18:07:40 +08:00

13 lines
366 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) {
updateGitlabCommitStatus name: 'Cleanup Dev', state: 'failed'
throw exc
}