Update Jenkinsfile

This commit is contained in:
John Hanzu Kim 2025-06-19 14:59:27 +09:00 committed by GitHub
parent dcee8e45fd
commit 261404dd72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -194,11 +194,11 @@ podTemplate(
git add . git add .
git commit -m "Update SMarketing services to ${imageTag} git commit -m "Update SMarketing services to ${imageTag}
Services updated: Services updated:
${services.collect { "- ${it}: ${props.registry}/${props.image_org}/${it}:${imageTag}" }.join('\n')} ${services.collect { "- ${it}: ${props.registry}/${props.image_org}/${it}:${imageTag}" }.join('\n')}
Build: ${env.BUILD_NUMBER} Build: ${env.BUILD_NUMBER}
Commit: ${env.GIT_COMMIT}" Commit: ${env.GIT_COMMIT}"
git push origin main git push origin main
echo "✅ Successfully updated manifest repository" echo "✅ Successfully updated manifest repository"
@ -212,23 +212,21 @@ podTemplate(
} }
stage('Trigger ArgoCD Sync') { stage('Trigger ArgoCD Sync') {
steps { script {
script { echo """
echo """ 🎯 CI Pipeline 완료!
🎯 CI Pipeline 완료!
📦 빌드된 이미지들:
📦 빌드된 이미지들: ${services.collect { "- ${props.registry}/${props.image_org}/${it}:${imageTag}" }.join('\n')}
${services.collect { "- ${props.registry}/${props.image_org}/${it}:${imageTag}" }.join('\n')}
🔄 ArgoCD 동작:
🔄 ArgoCD 동작: - ArgoCD가 manifest repository 변경사항을 자동으로 감지합니다
- ArgoCD가 manifest repository 변경사항을 자동으로 감지합니다 - 각 서비스별 Application이 새로운 이미지로 동기화됩니다
- 각 서비스별 Application이 새로운 이미지로 동기화됩니다 - ArgoCD UI에서 배포 상태를 모니터링하세요
- ArgoCD UI에서 배포 상태를 모니터링하세요
🌐 ArgoCD UI: [ArgoCD 접속 URL]
🌐 ArgoCD UI: [ArgoCD 접속 URL] 📁 Manifest Repo: ${MANIFEST_REPO}
📁 Manifest Repo: ${MANIFEST_REPO} """
"""
}
} }
} }
} }
@ -242,9 +240,9 @@ podTemplate(
} }
success { success {
echo """ echo """
✅ CI Pipeline 성공! ✅ CI Pipeline 성공!
🏷️ 새로운 이미지 태그: ${imageTag} 🏷️ 새로운 이미지 태그: ${imageTag}
🔄 ArgoCD가 자동으로 배포를 시작합니다 🔄 ArgoCD가 자동으로 배포를 시작합니다
""" """
} }
failure { failure {