mirror of
https://github.com/won-ktds/smarketing-backend.git
synced 2025-12-06 07:06:24 +00:00
Update Jenkinsfile
This commit is contained in:
parent
dcee8e45fd
commit
261404dd72
34
smarketing-java/deployment/Jenkinsfile
vendored
34
smarketing-java/deployment/Jenkinsfile
vendored
@ -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,26 +212,24 @@ 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}
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
@ -242,9 +240,9 @@ podTemplate(
|
|||||||
}
|
}
|
||||||
success {
|
success {
|
||||||
echo """
|
echo """
|
||||||
✅ CI Pipeline 성공!
|
✅ CI Pipeline 성공!
|
||||||
🏷️ 새로운 이미지 태그: ${imageTag}
|
🏷️ 새로운 이미지 태그: ${imageTag}
|
||||||
🔄 ArgoCD가 자동으로 배포를 시작합니다
|
🔄 ArgoCD가 자동으로 배포를 시작합니다
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
failure {
|
failure {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user