mirror of https://github.com/milvus-io/milvus.git
13 lines
452 B
Groovy
13 lines
452 B
Groovy
|
try {
|
||
|
def helmResult = sh script: "helm status -n milvus ${env.SHARDS_HELM_RELEASE_NAME}", returnStatus: true
|
||
|
if (!helmResult) {
|
||
|
sh "helm uninstall -n milvus ${env.SHARDS_HELM_RELEASE_NAME}"
|
||
|
}
|
||
|
} catch (exc) {
|
||
|
def helmResult = sh script: "helm status -n milvus ${env.SHARDS_HELM_RELEASE_NAME}", returnStatus: true
|
||
|
if (!helmResult) {
|
||
|
sh "helm uninstall -n milvus ${env.SHARDS_HELM_RELEASE_NAME}"
|
||
|
}
|
||
|
throw exc
|
||
|
}
|