From decc7e90f9a962fec7198cbcd9eb76e6ce288d9f Mon Sep 17 00:00:00 2001 From: zhenyus Date: Mon, 23 Jun 2025 16:09:19 +0800 Subject: [PATCH] fix(argo): declare ciOriginUrl as a local variable in ArgoApplicationVersionUpdater for improved scope management Signed-off-by: zhenyus --- .../com/freeleaps/devops/ArgoApplicationVersionUpdater.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/first-class-pipeline/src/com/freeleaps/devops/ArgoApplicationVersionUpdater.groovy b/first-class-pipeline/src/com/freeleaps/devops/ArgoApplicationVersionUpdater.groovy index f57fddb7..7054ce7c 100644 --- a/first-class-pipeline/src/com/freeleaps/devops/ArgoApplicationVersionUpdater.groovy +++ b/first-class-pipeline/src/com/freeleaps/devops/ArgoApplicationVersionUpdater.groovy @@ -51,7 +51,7 @@ class ArgoApplicationVersionUpdater { steps.writeYaml(file: valuesFile, data: data, overwrite: true) steps.withCredentials([steps.usernamePassword(credentialsId: repoCredentialsId, passwordVariable: 'OPS_GIT_PASSWORD', usernameVariable: 'OPS_GIT_USERNAME')]) { - ciOriginUrl = "https://${steps.env.OPS_GIT_USERNAME}:${steps.env.OPS_GIT_PASSWORD}@gitea.freeleaps.mathmast.com/freeleaps/freeleaps-ops.git" + def ciOriginUrl = "https://${steps.env.OPS_GIT_USERNAME}:${steps.env.OPS_GIT_PASSWORD}@gitea.freeleaps.mathmast.com/freeleaps/freeleaps-ops.git" if (userSpecifiedArgoControlledRepo) { // argoControlledRepo is a git url, so we need add username and password to the url def argoControlledRepoUrlObj = new URL(component.argoControlledRepo)