cluster_cleanup_dev.groovy 447 字节
Newer Older
1
try {
2 3 4
    def result = sh script: "helm status ${env.JOB_NAME}-${env.BUILD_NUMBER}-cluster", returnStatus: true
    if (result) {
        sh "helm del --purge ${env.JOB_NAME}-${env.BUILD_NUMBER}-cluster"
J
Jeff 已提交
5
    }
6
} catch (exc) {
7 8 9 10
    def result = sh script: "helm status ${env.JOB_NAME}-${env.BUILD_NUMBER}-cluster", returnStatus: true
    if (result) {
        sh "helm del --purge ${env.JOB_NAME}-${env.BUILD_NUMBER}-cluster"
    }
11 12 13
    throw exc
}