mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-04 21:09:06 +08:00
f9b0050cdb
Former-commit-id: 61d3f98595be12a26c8563ee369d0f5526c407e8
14 lines
449 B
Groovy
14 lines
449 B
Groovy
try {
|
|
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"
|
|
}
|
|
} catch (exc) {
|
|
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"
|
|
}
|
|
throw exc
|
|
}
|
|
|