From c9d99b34d6b9ce67c85152d01321dd5631600ed7 Mon Sep 17 00:00:00 2001 From: hiondal Date: Fri, 12 Sep 2025 18:06:07 +0900 Subject: [PATCH] =?UTF-8?q?Jenkins=20post=20=EB=B8=94=EB=A1=9D=20DSL=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=ED=95=B4=EA=B2=B0=20-=20Scripted=20Pipeli?= =?UTF-8?q?ne=20=EB=B0=A9=EC=8B=9D=EC=97=90=20=EB=A7=9E=EA=B2=8C=20?= =?UTF-8?q?=EC=9D=BC=EB=B0=98=20stage=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deployment/cicd/Jenkinsfile | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/deployment/cicd/Jenkinsfile b/deployment/cicd/Jenkinsfile index 6f694b9..22e391e 100644 --- a/deployment/cicd/Jenkinsfile +++ b/deployment/cicd/Jenkinsfile @@ -181,20 +181,15 @@ podTemplate( } } - // 파이프라인 완료 후 후처리 - post { - always { - // 파드 정리는 Jenkins Kubernetes Plugin이 자동으로 처리 - echo "🧹 Pipeline completed. Pod cleanup handled by Jenkins Kubernetes Plugin." - - // 성공/실패 여부 로깅 - script { - if (currentBuild.result == null || currentBuild.result == 'SUCCESS') { - echo "✅ Pipeline completed successfully!" - } else { - echo "❌ Pipeline failed with result: ${currentBuild.result}" - } - } + // 파이프라인 완료 로그 (Scripted Pipeline 방식) + stage('Pipeline Complete') { + echo "🧹 Pipeline completed. Pod cleanup handled by Jenkins Kubernetes Plugin." + + // 성공/실패 여부 로깅 + if (currentBuild.result == null || currentBuild.result == 'SUCCESS') { + echo "✅ Pipeline completed successfully!" + } else { + echo "❌ Pipeline failed with result: ${currentBuild.result}" } } }