mirror of https://github.com/milvus-io/milvus.git
13 lines
366 B
Groovy
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
|
||
|
}
|