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