Wait for helm uninstall chart (#2142)

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>
This commit is contained in:
quicksilver 2020-04-27 16:06:43 +08:00 committed by GitHub
parent 1384484b7d
commit ac2c25212f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,7 @@ timeout(time: 180, unit: 'MINUTES') {
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}"
sleep 30
}
throw exc
}

View File

@ -13,6 +13,7 @@ timeout(time: 180, unit: 'MINUTES') {
def helmResult = sh script: "helm status -n milvus ${env.HELM_RELEASE_NAME}", returnStatus: true
if (!helmResult) {
sh "helm uninstall -n milvus ${env.HELM_RELEASE_NAME}"
sleep 30
}
throw exc
}
@ -42,6 +43,7 @@ timeout(time: 180, unit: 'MINUTES') {
def helmResult = sh script: "helm status -n milvus ${env.HELM_RELEASE_NAME}", returnStatus: true
if (!helmResult) {
sh "helm uninstall -n milvus ${env.HELM_RELEASE_NAME}"
sleep 30
}
throw exc
}

View File

@ -13,6 +13,7 @@ timeout(time: 120, unit: 'MINUTES') {
def helmResult = sh script: "helm status -n milvus ${env.HELM_RELEASE_NAME}", returnStatus: true
if (!helmResult) {
sh "helm uninstall -n milvus ${env.HELM_RELEASE_NAME}"
sleep 30
}
throw exc
}