From c7850f89f03a1bf0def2ac1f4afaff73189d9c46 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:51 +0900 Subject: [PATCH] =?UTF-8?q?ci:=20Jenkinsfile=20tokenCredentialId=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20=EB=B0=8F=20=EB=B0=B0=ED=8F=AC=20=EB=94=94?= =?UTF-8?q?=EB=A0=89=ED=86=A0=EB=A6=AC=20=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - slackSend 3곳에 tokenCredentialId: 'slack-token' 추가 - Deploy: mkdir -p bootstrap/cache storage/framework 추가 - tokenCredentialId 누락 시 Slack Bot Token 인증 실패 방지 Co-Authored-By: Claude Opus 4.6 --- Jenkinsfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 39415fb5..869a05b4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,7 +9,7 @@ pipeline { stages { stage('Checkout') { steps { - slackSend channel: '#product_infra', color: '#439FE0', + slackSend channel: '#product_infra', color: '#439FE0', tokenCredentialId: 'slack-token', message: "🚀 *mng* 빌드 시작 (`${env.BRANCH_NAME}`)\n<${env.BUILD_URL}|빌드 #${env.BUILD_NUMBER}>" checkout scm } @@ -33,6 +33,7 @@ pipeline { ssh ${DEPLOY_USER}@211.117.60.189 ' cd /home/webservice/mng/releases/${RELEASE_ID} && + mkdir -p bootstrap/cache storage/framework/{views,cache/data,sessions} storage/logs && ln -sfn /home/webservice/mng/shared/.env .env && ln -sfn /home/webservice/mng/shared/storage/app storage/app && composer install --no-dev --optimize-autoloader --no-interaction && @@ -56,11 +57,11 @@ pipeline { post { success { - slackSend channel: '#product_infra', color: 'good', + slackSend channel: '#product_infra', color: 'good', tokenCredentialId: 'slack-token', message: "✅ *mng* 배포 성공 (`${env.BRANCH_NAME}`)\n<${env.BUILD_URL}|빌드 #${env.BUILD_NUMBER}>" } failure { - slackSend channel: '#product_infra', color: 'danger', + slackSend channel: '#product_infra', color: 'danger', tokenCredentialId: 'slack-token', message: "❌ *mng* 배포 실패 (`${env.BRANCH_NAME}`)\n<${env.BUILD_URL}|빌드 #${env.BUILD_NUMBER}>" script { if (env.BRANCH_NAME == 'main') {