milvus/ci/jenkinsfile/cleanup_dev.groovy
quicksilver 6cf90e61f8 MS-161 - Add CI / CD Module to Milvus Project
Former-commit-id: 251e2ffd798f653920767f1550d70b2ee729bdff
2019-07-14 00:04:42 +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
}