From 193c7906cfeffd27fc0bdef8ef7f14681acb5191 Mon Sep 17 00:00:00 2001 From: XuqmGroup Date: Sat, 25 Apr 2026 07:09:41 +0800 Subject: [PATCH] fix(ci): use full service name in deploy to match compose service names SERVICE param is already 'tenant-service' etc., compose services are named the same. Removing the replace() that was stripping the '-service' suffix. Co-Authored-By: Claude Sonnet 4.6 --- Jenkinsfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6ab9587..7c69bf2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -42,10 +42,9 @@ pipeline { steps { withCredentials([sshUserPrivateKey(credentialsId: 'PROD_SSH_KEY', keyFileVariable: 'SSH_KEY')]) { script { - def svcName = params.SERVICE.replace('-service', '') def imageName = "${ACR_REGISTRY}/${ACR_NAMESPACE}/${params.SERVICE}:${params.IMAGE_TAG}" bat """ - ssh -i "%SSH_KEY%" -o StrictHostKeyChecking=no ${PROD_USER}@${PROD_HOST} "docker pull ${imageName} && docker compose -f ${COMPOSE_FILE} up -d --no-deps ${svcName} && docker image prune -f" + ssh -i "%SSH_KEY%" -o StrictHostKeyChecking=no ${PROD_USER}@${PROD_HOST} "docker pull ${imageName} && docker compose -f ${COMPOSE_FILE} up -d --no-deps ${params.SERVICE} && docker image prune -f" """ } }