format ci/jenkins/jenkinsfile/cleanupSingleDev.groovy

Former-commit-id: 6ce898ed133881f30c04427369b85055b1a4f97f
pull/191/head
milvus-ci-robot 2019-10-26 15:07:11 +08:00
parent 1a1c858f1e
commit 0a7434020f
1 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
try { try {
sh "helm del --purge ${env.PIPELINE_NAME}-${env.BUILD_NUMBER}-single-gpu" def helmResult = sh script: "helm status ${env.PIPELINE_NAME}-${env.BUILD_NUMBER}-single-gpu", returnStatus: true
if (!helmResult) {
sh "helm del --purge ${env.PIPELINE_NAME}-${env.BUILD_NUMBER}-single-gpu"
}
} catch (exc) { } catch (exc) {
def helmResult = sh script: "helm status ${env.PIPELINE_NAME}-${env.BUILD_NUMBER}-single-gpu", returnStatus: true def helmResult = sh script: "helm status ${env.PIPELINE_NAME}-${env.BUILD_NUMBER}-single-gpu", returnStatus: true
if (!helmResult) { if (!helmResult) {