Tomishinets Vladimir há 4 anos atrás
pai
commit
f3dee0466b
1 ficheiros alterados com 12 adições e 12 exclusões
  1. 12 12
      devK8s.Jenkinsfile

+ 12 - 12
devK8s.Jenkinsfile

@@ -119,18 +119,18 @@ pipeline {
         }
       }
     }
-    // stage("Update Helm Chart dev.yaml") {
-    //   steps {
-    //     script {
-    //       TAG_PATH = "images." + DOCKER_IMAGE.split("/")[1]
-    //       echo "Update ${TAG_PATH} to ${IMAGE_TO_PUSH} in ${VALUES_FILE}"
-    //       gitOps.clone(HELM_GIT_URL)
-    //       def data = readYaml file: "${VALUES_FILE}"
-    //       yamlOps.updateBuilder(TAG_PATH, data, IMAGE_TO_PUSH)
-    //       writeYaml file: "${VALUES_FILE}", data: data, overwrite: true
-    //     }
-    //   }
-    // }
+    stage("Update Helm Chart dev.yaml") {
+      steps {
+        script {
+          TAG_PATH = "images." + DOCKER_IMAGE.split("/")[1]
+          echo "Update ${TAG_PATH} to ${IMAGE_TO_PUSH} in ${VALUES_FILE}"
+          gitOps.clone(HELM_GIT_URL)
+          def data = readYaml file: "${VALUES_FILE}"
+          yamlOps.updateBuilder(TAG_PATH, data, IMAGE_TO_PUSH)
+          writeYaml file: "${VALUES_FILE}", data: data, overwrite: true
+        }
+      }
+    }
     // stage("Update APP") {
     //   steps {
     //     script {