mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-01 16:35:29 +08:00
13 lines
388 B
Groovy
13 lines
388 B
Groovy
try {
|
|
def helmResult = sh script: "helm status ${env.HELM_RELEASE_NAME}", returnStatus: true
|
|
if (!helmResult) {
|
|
sh "helm del --purge ${env.HELM_RELEASE_NAME}"
|
|
}
|
|
} catch (exc) {
|
|
def helmResult = sh script: "helm status ${env.HELM_RELEASE_NAME}", returnStatus: true
|
|
if (!helmResult) {
|
|
sh "helm del --purge ${env.HELM_RELEASE_NAME}"
|
|
}
|
|
throw exc
|
|
}
|