cleanup_dev.groovy 366 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
try {
    sh "helm del --purge ${env.JOB_NAME}-${env.BUILD_NUMBER}"

    if (currentBuild.result == 'ABORTED') {
        throw new hudson.AbortException("Dev Test Aborted !")
    } else if (currentBuild.result == 'FAILURE') {
        error("Dev Test Failure !")
    }
} catch (exc) {
    updateGitlabCommitStatus name: 'Cleanup Dev', state: 'failed'
    throw exc
}