cleanupSingleDev.groovy 496 字节
Newer Older
T
add ci  
test 已提交
1
try {
2 3 4 5
    def helmResult = sh script: "helm status ${env.PIPELINE_NAME}-${env.BUILD_NUMBER}-single-gpu", returnStatus: true
    if (!helmResult) {
        sh "helm del --purge ${env.PIPELINE_NAME}-${env.BUILD_NUMBER}-single-gpu"
    }
T
add ci  
test 已提交
6
} catch (exc) {
7
    def helmResult = sh script: "helm status ${env.PIPELINE_NAME}-${env.BUILD_NUMBER}-single-gpu", returnStatus: true
T
add ci  
test 已提交
8
    if (!helmResult) {
9
        sh "helm del --purge ${env.PIPELINE_NAME}-${env.BUILD_NUMBER}-single-gpu"
T
add ci  
test 已提交
10 11 12
    }
    throw exc
}