From d1a09935e2341c6613388ebfa70ddfc3c2b497e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B6=8C=ED=98=81=EC=84=B1?= Date: Tue, 24 Feb 2026 20:45:50 +0900 Subject: [PATCH] =?UTF-8?q?ci:Jenkinsfile=20Slack=20=EC=95=8C=EB=A6=BC=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20(slackSend=20#product=5Finfra)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- Jenkinsfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0ff9674..594fba2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -87,9 +87,13 @@ pipeline { } post { - success { echo "✅ api 배포 완료 (${env.BRANCH_NAME})" } + success { + slackSend channel: '#product_infra', color: 'good', + message: "✅ *api* 배포 성공 (`${env.BRANCH_NAME}`)\n<${env.BUILD_URL}|빌드 #${env.BUILD_NUMBER}>" + } failure { - echo "❌ api 배포 실패 (${env.BRANCH_NAME})" + slackSend channel: '#product_infra', color: 'danger', + message: "❌ *api* 배포 실패 (`${env.BRANCH_NAME}`)\n<${env.BUILD_URL}|빌드 #${env.BUILD_NUMBER}>" script { if (env.BRANCH_NAME == 'main') { sshagent(credentials: ['deploy-ssh-key']) {