mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 20:09:57 +08:00
eff75c7701
Signed-off-by: Binbin Lv <binbin.lv@zilliz.com>
14 lines
409 B
Groovy
14 lines
409 B
Groovy
try {
|
|
def result = sh script: "helm status -n milvus ${env.HELM_RELEASE_NAME}", returnStatus: true
|
|
if (!result) {
|
|
sh "helm uninstall -n milvus ${env.HELM_RELEASE_NAME}"
|
|
}
|
|
} catch (exc) {
|
|
def result = sh script: "helm status -n milvus ${env.HELM_RELEASE_NAME}", returnStatus: true
|
|
if (!result) {
|
|
sh "helm uninstall -n milvus ${env.HELM_RELEASE_NAME}"
|
|
}
|
|
throw exc
|
|
}
|
|
|