Browse Source

missprint

Tomishinets Vladimir 3 years ago
parent
commit
945b8490ed
1 changed files with 3 additions and 3 deletions
  1. 3 3
      updateK8s.Jenkinsfile

+ 3 - 3
updateK8s.Jenkinsfile

@@ -39,7 +39,7 @@ pipeline {
           echo "Pull Repo"
           gitOps.clone(HELM_GIT_URL)
           HELM_DIR = dirOps.calculateDir(HELM_GIT_URL)
-          CHART_PATH = "helm/" + DOCKER_IMAGE.split("/")[0]
+          CHART_PATH = "helm/" + DOCKER_IMAGE.split("/")[1]
           VALUES_FILE_DEV = HELM_DIR + "/helm/" + "dev-" + DOCKER_IMAGE.split("/")[1] + ".yaml"
           VALUES_FILE_PROD = HELM_DIR + "/helm/" + "dev-" + DOCKER_IMAGE.split("/")[1] + ".yaml"
         }
@@ -62,8 +62,8 @@ pipeline {
     stage("Update APP") {
       steps {
         script {
-          RELEASENAME = DOCKER_IMAGE.split("/")[0]
-          NAMESPACE = DOCKER_IMAGE.split("/")[0]
+          RELEASENAME = DOCKER_IMAGE.split("/")[1]
+          NAMESPACE = DOCKER_IMAGE.split("/")[1]
           IMAGE_TO_PUSH = "${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${TAG}"
           try {
             echo "Update APP"