From 9930d901463c5bfa2bc721bf7a5347177724e09a Mon Sep 17 00:00:00 2001 From: XuqmGroup Date: Thu, 18 Jun 2026 14:29:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20for-in=20=E5=BE=AA=E7=8E=AF=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=20keySet=20=E9=81=8D=E5=8E=86=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=20HashMap$Node=20=E5=BA=8F=E5=88=97=E5=8C=96=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude --- Jenkinsfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4124e1b..d6a7d3d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -75,9 +75,8 @@ pipeline { withCredentials([string(credentialsId: 'ACR_PASSWORD', variable: 'ACR_PASS')]) { script { def serviceVersions = new groovy.json.JsonSlurperClassic().parseText(env.SERVICE_VERSIONS_JSON) - for (entry in serviceVersions) { - def svc = entry.key - def ver = entry.value + for (svc in serviceVersions.keySet()) { + def ver = serviceVersions[svc] def base = "${ACR_REGISTRY}/${ACR_NAMESPACE}/${svc}" def versionedImage = "${base}:${ver}" def latestImage = "${base}:latest" @@ -108,8 +107,7 @@ pipeline { withCredentials([sshUserPrivateKey(credentialsId: 'PROD_SSH_KEY', keyFileVariable: 'SSH_KEY')]) { script { def serviceVersions = new groovy.json.JsonSlurperClassic().parseText(env.SERVICE_VERSIONS_JSON) - for (entry in serviceVersions) { - def svc = entry.key + for (svc in serviceVersions.keySet()) { def latestImage = "${ACR_REGISTRY}/${ACR_NAMESPACE}/${svc}:latest" echo "Deploying ${svc}..." retry(2) {