从无法访问的项目Fork
体验新版 GitCode,发现更多精彩内容 >>
try { sh "helm del --purge ${env.JOB_NAME}-${env.BUILD_NUMBER}-cluster"
if (currentBuild.result == 'ABORTED') { throw new hudson.AbortException("Cluster Dev Test Aborted !") } else if (currentBuild.result == 'FAILURE') { error("Dev Test Failure !") }
} catch (exc) {
sh "helm del --purge ${env.JOB_NAME}-${env.BUILD_NUMBER}-cluster"
updateGitlabCommitStatus name: 'Cleanup Dev', state: 'failed' throw exc }