Browse Source

missprint

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

+ 5 - 5
updateK8s.Jenkinsfile

@@ -48,13 +48,13 @@ pipeline {
       steps {
         script {
           echo "Update values.yaml"
-          def data = readYaml file: VALUES_FILE_DEV
+          def data_build = readYaml file: VALUES_FILE_DEV
           TAG_PATH_BUILD = "images." + DOCKER_IMAGE.split("/")[1] + ".build"
-          TAG = yamlOps.getBuilder(TAG_PATH_BUILD, data)
-          def data = readYaml file: VALUES_FILE_PROD
+          TAG = yamlOps.getBuilder(TAG_PATH_BUILD, data_build)
+          def data_stable = readYaml file: VALUES_FILE_PROD
           TAG_PATH_STABLE = "images." + DOCKER_IMAGE.split("/")[1] + ".stable"
-          yamlOps.updateBuilder(TAG_PATH_STABLE, data, TAG)
-          writeYaml file: "${CHART_PATH}/values.yaml", data: data, overwrite: true
+          yamlOps.updateBuilder(TAG_PATH_STABLE, data_stable, TAG)
+          writeYaml file: "${CHART_PATH}/values.yaml", data: data_stable, overwrite: true
         }
       }
     }