Tomishinets Vladimir 3 years ago
parent
commit
be092e3c58
1 changed files with 11 additions and 10 deletions
  1. 11 10
      updateK8s.Jenkinsfile

+ 11 - 10
updateK8s.Jenkinsfile

@@ -53,6 +53,7 @@ pipeline {
           def data_build = readYaml file: VALUES_FILE_DEV
           TAG_PATH_BUILD = "images." + DOCKER_IMAGE.split("/")[1] + ".build"
           TAG = yamlOps.getBuilder(TAG_PATH_BUILD, data_build)
+          echo "TAG = ${TAG}"
           def data_stable = readYaml file: VALUES_FILE_PROD
           echo "Next TAG = ${data_stable}"
           TAG_PATH_STABLE = "images." + DOCKER_IMAGE.split("/")[1] + ".stable"
@@ -77,16 +78,16 @@ pipeline {
     //     }
     //   }
     // }
-    stage("Push changes to REPO") {
-      steps {
-        script {
-          echo "Push changes to Repo"
-          PROJECT = DOCKER_IMAGE.split("/")[1]
-          COMMIT = "Version update ${PROJECT} to ${TAG}"
-          gitOps.push(HELM_DIR, COMMIT)
-        }
-      }
-    }
+    // stage("Push changes to REPO") {
+    //   steps {
+    //     script {
+    //       echo "Push changes to Repo"
+    //       PROJECT = DOCKER_IMAGE.split("/")[1]
+    //       COMMIT = "Version update ${PROJECT} to ${TAG}"
+    //       gitOps.push(HELM_DIR, COMMIT)
+    //     }
+    //   }
+    // }
   //   stage("Tagging Image") {
   //     steps {
   //       script {