Jenkins post 블록 DSL 오류 해결 - Scripted Pipeline 방식에 맞게 일반 stage로 변경

This commit is contained in:
hiondal 2025-09-12 18:06:07 +09:00
parent 338ce1bd6b
commit c9d99b34d6

View File

@ -181,14 +181,11 @@ podTemplate(
}
}
// 파이프라인 완료 후 후처리
post {
always {
// 파드 정리는 Jenkins Kubernetes Plugin이 자동으로 처리
// 파이프라인 완료 로그 (Scripted Pipeline 방식)
stage('Pipeline Complete') {
echo "🧹 Pipeline completed. Pod cleanup handled by Jenkins Kubernetes Plugin."
// 성공/실패 여부 로깅
script {
if (currentBuild.result == null || currentBuild.result == 'SUCCESS') {
echo "✅ Pipeline completed successfully!"
} else {
@ -197,5 +194,3 @@ podTemplate(
}
}
}
}
}