mirror of
https://github.com/cna-bootcamp/phonebill.git
synced 2025-12-06 08:06:24 +00:00
Jenkins post 블록 DSL 오류 해결 - Scripted Pipeline 방식에 맞게 일반 stage로 변경
This commit is contained in:
parent
338ce1bd6b
commit
c9d99b34d6
23
deployment/cicd/Jenkinsfile
vendored
23
deployment/cicd/Jenkinsfile
vendored
@ -181,20 +181,15 @@ podTemplate(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 파이프라인 완료 후 후처리
|
// 파이프라인 완료 로그 (Scripted Pipeline 방식)
|
||||||
post {
|
stage('Pipeline Complete') {
|
||||||
always {
|
echo "🧹 Pipeline completed. Pod cleanup handled by Jenkins Kubernetes Plugin."
|
||||||
// 파드 정리는 Jenkins Kubernetes Plugin이 자동으로 처리
|
|
||||||
echo "🧹 Pipeline completed. Pod cleanup handled by Jenkins Kubernetes Plugin."
|
// 성공/실패 여부 로깅
|
||||||
|
if (currentBuild.result == null || currentBuild.result == 'SUCCESS') {
|
||||||
// 성공/실패 여부 로깅
|
echo "✅ Pipeline completed successfully!"
|
||||||
script {
|
} else {
|
||||||
if (currentBuild.result == null || currentBuild.result == 'SUCCESS') {
|
echo "❌ Pipeline failed with result: ${currentBuild.result}"
|
||||||
echo "✅ Pipeline completed successfully!"
|
|
||||||
} else {
|
|
||||||
echo "❌ Pipeline failed with result: ${currentBuild.result}"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user