From 97f61e24bcfab7b789a139ea17e212f5dc5d2b1f 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 23:53:48 +0900 Subject: [PATCH] =?UTF-8?q?ci:=20Jenkinsfile=20slackSend=20=EC=95=8C?= =?UTF-8?q?=EB=A6=BC=20=EB=B3=B5=EA=B5=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Checkout: slackSend 빌드 시작 알림 추가 (tokenCredentialId) - Post success/failure: echo → slackSend 교체 (tokenCredentialId) - 이전 rebase 과정에서 소실된 slackSend 복구 Co-Authored-By: Claude Opus 4.6 --- Jenkinsfile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1a00683..243be46 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,7 +8,11 @@ pipeline { stages { stage('Checkout') { - steps { checkout scm } + steps { + slackSend channel: '#product_infra', color: '#439FE0', tokenCredentialId: 'slack-token', + message: "🚀 *api* 빌드 시작 (`${env.BRANCH_NAME}`)\n<${env.BUILD_URL}|빌드 #${env.BUILD_NUMBER}>" + checkout scm + } } // ── main → 운영서버 Stage 배포 ── @@ -99,9 +103,13 @@ pipeline { } post { - success { echo "✅ api 배포 완료 (${env.BRANCH_NAME})" } + success { + slackSend channel: '#product_infra', color: 'good', tokenCredentialId: 'slack-token', + message: "✅ *api* 배포 성공 (`${env.BRANCH_NAME}`)\n<${env.BUILD_URL}|빌드 #${env.BUILD_NUMBER}>" + } failure { - echo "❌ api 배포 실패 (${env.BRANCH_NAME})" + slackSend channel: '#product_infra', color: 'danger', tokenCredentialId: 'slack-token', + message: "❌ *api* 배포 실패 (`${env.BRANCH_NAME}`)\n<${env.BUILD_URL}|빌드 #${env.BUILD_NUMBER}>" script { if (env.BRANCH_NAME == 'main') { sshagent(credentials: ['deploy-ssh-key']) {