diff --git a/first-class-pipeline/src/com/freeleaps/devops/ArgoApplicationVersionUpdater.groovy b/first-class-pipeline/src/com/freeleaps/devops/ArgoApplicationVersionUpdater.groovy index 29e7513b..38c1e82f 100644 --- a/first-class-pipeline/src/com/freeleaps/devops/ArgoApplicationVersionUpdater.groovy +++ b/first-class-pipeline/src/com/freeleaps/devops/ArgoApplicationVersionUpdater.groovy @@ -22,10 +22,10 @@ class ArgoApplicationVersionUpdater { steps.dir("${workspace}") { def valuesFile = "./${configurations.serviceName}/helm-pkg/${configurations.serviceName}/values.${environmentSlug}.yaml" def data = steps.readYaml (file: valuesFile) - data.${component.name}.image.registry = steps.env.BUILD_IMAGE_REGISTRY - data.${component.name}.image.repository = steps.env.BUILD_IMAGE_REPOSITORY - data.${component.name}.image.tag = steps.env.BUILD_IMAGE_VERSION - data.${component.name}.image.name = steps.env.BUILD_IMAGE_NAME + data[component.name].image.registry = steps.env.BUILD_IMAGE_REGISTRY + data[component.name].image.repository = steps.env.BUILD_IMAGE_REPOSITORY + data[component.name].image.tag = steps.env.BUILD_IMAGE_VERSION + data[component.name].image.name = steps.env.BUILD_IMAGE_NAME steps.writeFile file: valuesFile, data: data, overwrite: true steps.withCredentials([steps.usernamePassword(credentialsId: 'freeleaps-ops-credentials', passwordVariable: 'OPS_GIT_PASSWORD', usernameVariable: 'OPS_GIT_USERNAME')]) {