From 261404dd72337a208fd29f0e64fc30dc805ebdc0 Mon Sep 17 00:00:00 2001 From: John Hanzu Kim Date: Thu, 19 Jun 2025 14:59:27 +0900 Subject: [PATCH] Update Jenkinsfile --- smarketing-java/deployment/Jenkinsfile | 48 ++++++++++++-------------- 1 file changed, 23 insertions(+), 25 deletions(-) diff --git a/smarketing-java/deployment/Jenkinsfile b/smarketing-java/deployment/Jenkinsfile index f0b3ad3..e22b768 100644 --- a/smarketing-java/deployment/Jenkinsfile +++ b/smarketing-java/deployment/Jenkinsfile @@ -194,11 +194,11 @@ podTemplate( git add . git commit -m "Update SMarketing services to ${imageTag} - Services updated: - ${services.collect { "- ${it}: ${props.registry}/${props.image_org}/${it}:${imageTag}" }.join('\n')} - - Build: ${env.BUILD_NUMBER} - Commit: ${env.GIT_COMMIT}" +Services updated: +${services.collect { "- ${it}: ${props.registry}/${props.image_org}/${it}:${imageTag}" }.join('\n')} + +Build: ${env.BUILD_NUMBER} +Commit: ${env.GIT_COMMIT}" git push origin main echo "โœ… Successfully updated manifest repository" @@ -212,23 +212,21 @@ podTemplate( } stage('Trigger ArgoCD Sync') { - steps { - script { - echo """ - ๐ŸŽฏ CI Pipeline ์™„๋ฃŒ! - - ๐Ÿ“ฆ ๋นŒ๋“œ๋œ ์ด๋ฏธ์ง€๋“ค: - ${services.collect { "- ${props.registry}/${props.image_org}/${it}:${imageTag}" }.join('\n')} - - ๐Ÿ”„ ArgoCD ๋™์ž‘: - - ArgoCD๊ฐ€ manifest repository ๋ณ€๊ฒฝ์‚ฌํ•ญ์„ ์ž๋™์œผ๋กœ ๊ฐ์ง€ํ•ฉ๋‹ˆ๋‹ค - - ๊ฐ ์„œ๋น„์Šค๋ณ„ Application์ด ์ƒˆ๋กœ์šด ์ด๋ฏธ์ง€๋กœ ๋™๊ธฐํ™”๋ฉ๋‹ˆ๋‹ค - - ArgoCD UI์—์„œ ๋ฐฐํฌ ์ƒํƒœ๋ฅผ ๋ชจ๋‹ˆํ„ฐ๋งํ•˜์„ธ์š” - - ๐ŸŒ ArgoCD UI: [ArgoCD ์ ‘์† URL] - ๐Ÿ“ Manifest Repo: ${MANIFEST_REPO} - """ - } + script { + echo """ +๐ŸŽฏ CI Pipeline ์™„๋ฃŒ! + +๐Ÿ“ฆ ๋นŒ๋“œ๋œ ์ด๋ฏธ์ง€๋“ค: +${services.collect { "- ${props.registry}/${props.image_org}/${it}:${imageTag}" }.join('\n')} + +๐Ÿ”„ ArgoCD ๋™์ž‘: +- ArgoCD๊ฐ€ manifest repository ๋ณ€๊ฒฝ์‚ฌํ•ญ์„ ์ž๋™์œผ๋กœ ๊ฐ์ง€ํ•ฉ๋‹ˆ๋‹ค +- ๊ฐ ์„œ๋น„์Šค๋ณ„ Application์ด ์ƒˆ๋กœ์šด ์ด๋ฏธ์ง€๋กœ ๋™๊ธฐํ™”๋ฉ๋‹ˆ๋‹ค +- ArgoCD UI์—์„œ ๋ฐฐํฌ ์ƒํƒœ๋ฅผ ๋ชจ๋‹ˆํ„ฐ๋งํ•˜์„ธ์š” + +๐ŸŒ ArgoCD UI: [ArgoCD ์ ‘์† URL] +๐Ÿ“ Manifest Repo: ${MANIFEST_REPO} + """ } } } @@ -242,9 +240,9 @@ podTemplate( } success { echo """ - โœ… CI Pipeline ์„ฑ๊ณต! - ๐Ÿท๏ธ ์ƒˆ๋กœ์šด ์ด๋ฏธ์ง€ ํƒœ๊ทธ: ${imageTag} - ๐Ÿ”„ ArgoCD๊ฐ€ ์ž๋™์œผ๋กœ ๋ฐฐํฌ๋ฅผ ์‹œ์ž‘ํ•ฉ๋‹ˆ๋‹ค +โœ… CI Pipeline ์„ฑ๊ณต! +๐Ÿท๏ธ ์ƒˆ๋กœ์šด ์ด๋ฏธ์ง€ ํƒœ๊ทธ: ${imageTag} +๐Ÿ”„ ArgoCD๊ฐ€ ์ž๋™์œผ๋กœ ๋ฐฐํฌ๋ฅผ ์‹œ์ž‘ํ•ฉ๋‹ˆ๋‹ค """ } failure {