cluster_cleanup_dev.groovy 453 字节
Newer Older
1 2
try {
    sh "helm del --purge ${env.JOB_NAME}-${env.BUILD_NUMBER}-cluster"
J
Jeff 已提交
3 4 5 6 7 8

    if (currentBuild.result == 'ABORTED') {
        throw new hudson.AbortException("Cluster Dev Test Aborted !")
    } else if (currentBuild.result == 'FAILURE') {
        error("Dev Test Failure !")
    }
9
} catch (exc) {
Q
quicksilver 已提交
10
    sh "helm del --purge ${env.JOB_NAME}-${env.BUILD_NUMBER}-cluster"
11 12 13 14
    updateGitlabCommitStatus name: 'Cleanup Dev', state: 'failed'
    throw exc
}