|
@@ -62,16 +62,14 @@ pipeline {
|
|
|
stage("Update APP") {
|
|
|
steps {
|
|
|
script {
|
|
|
- RELEASENAME = DOCKER_IMAGE.split("/")[1]
|
|
|
- NAMESPACE = DOCKER_IMAGE.split("/")[1]
|
|
|
try {
|
|
|
echo "Update APP"
|
|
|
- k8sHelmOps.upgrade(CONTEXT, NAMESPACE, RELEASENAME, CHART_PATH, VALUES_FILE_PROD, HELM_REPO)
|
|
|
+ k8sHelmOps.upgrade(CONTEXT, DOCKER_IMAGE.split("/")[1], DOCKER_IMAGE.split("/")[1], CHART_PATH, VALUES_FILE_PROD, HELM_REPO)
|
|
|
echo "Update success!!!"
|
|
|
}
|
|
|
catch(err) {
|
|
|
echo "Recovering APP"
|
|
|
- k8sHelmOps.rollback(CONTEXT, NAMESPACE, RELEASENAME)
|
|
|
+ k8sHelmOps.rollback(CONTEXT, DOCKER_IMAGE.split("/")[1], DOCKER_IMAGE.split("/")[1])
|
|
|
throw err
|
|
|
}
|
|
|
}
|