milvus/ci/jenkinsfile/cleanup_dev.groovy
quicksilver 9bb7ccf412 MS-161 - Add CI / CD Module to Milvus Project
Former-commit-id: 55cd0d918a24c97b31f8fb744f9c507c65f819f6
2019-07-09 04:44:50 +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
}