From 97117b6ec4cbb2a34a3de349171b51a91952c26b Mon Sep 17 00:00:00 2001 From: hiondal Date: Fri, 12 Sep 2025 20:51:51 +0900 Subject: [PATCH] =?UTF-8?q?Jenkins=20=EB=AC=B8=EB=B2=95=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - sh 블록과 Groovy 코드 분리하여 파싱 에러 방지 - kustomize 설치/이미지 업데이트/배포 확인을 명확한 단계로 구분 - 각 sh 블록이 독립적으로 실행되도록 구조화 - Jenkins DSL 문법 준수로 안정적인 파이프라인 보장 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- deployment/cicd/Jenkinsfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/deployment/cicd/Jenkinsfile b/deployment/cicd/Jenkinsfile index 8964f1b..4c33e25 100644 --- a/deployment/cicd/Jenkinsfile +++ b/deployment/cicd/Jenkinsfile @@ -168,23 +168,24 @@ podTemplate( # 환경별 디렉토리로 이동 cd deployment/cicd/kustomize/overlays/${environment} - - # 이미지 태그 업데이트 """ + + // 이미지 태그 업데이트 services.each { service -> sh "\$HOME/bin/kustomize edit set image acrdigitalgarage01.azurecr.io/phonebill/${service}:${environment}-${imageTag}" } + sh """ # 매니페스트 적용 kubectl apply -k . # 배포 상태 확인 echo "Waiting for deployments to be ready..." """ + services.each { service -> sh "kubectl -n phonebill-${environment} wait --for=condition=available deployment/${service} --timeout=300s" } - """ } }