Tomishinets Vladimir %!s(int64=3) %!d(string=hai) anos
pai
achega
c24dc28c93
Modificáronse 1 ficheiros con 5 adicións e 5 borrados
  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
         }
       }
     }