From ea342a225c0e2eec264402e36d87e5a04cdbe6bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B6=8C=ED=98=81=EC=84=B1?= Date: Thu, 26 Feb 2026 22:29:59 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EC=9A=B4=EC=98=81=20=EB=B0=B0?= =?UTF-8?q?=ED=8F=AC=20=EC=8A=B9=EC=9D=B8=20=EB=8B=A8=EA=B3=84=20=EB=B9=84?= =?UTF-8?q?=ED=99=9C=EC=84=B1=ED=99=94=20(=EA=B0=9C=EB=B0=9C=20=EB=8B=A8?= =?UTF-8?q?=EA=B3=84)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Production Approval stage 주석처리 - 런칭 후 다시 활성화 예정 - 배포 흐름: main push → Stage → Rebuild → Production (승인 없이 자동) --- Jenkinsfile | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4ccf1c0b..d71b4df2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,7 +26,7 @@ pipeline { steps { script { if (env.BRANCH_NAME == 'main') { - // main: Stage 빌드 먼저 (승인 후 Production 재빌드) + // main: Stage 빌드 먼저 → Production 재빌드 sh "cp /var/lib/jenkins/env-files/react/.env.stage .env.production" } else { def envFile = "/var/lib/jenkins/env-files/react/.env.${env.BRANCH_NAME}" @@ -82,18 +82,18 @@ pipeline { } } - // ── 운영 배포 승인 ── - stage('Production Approval') { - when { branch 'main' } - steps { - slackSend channel: '#product_deploy', color: '#FF9800', tokenCredentialId: 'slack-token', - message: "🔔 *react* 운영 배포 승인 대기 중\n${env.GIT_COMMIT_MSG}\nStage: https://stage.sam.it.kr\n<${env.BUILD_URL}input|승인하러 가기>" - timeout(time: 24, unit: 'HOURS') { - input message: 'Stage 확인 후 운영 배포를 진행하시겠습니까?\nStage: https://stage.sam.it.kr', - ok: '운영 배포 진행' - } - } - } + // ── 운영 배포 승인 (런칭 후 활성화) ── + // stage('Production Approval') { + // when { branch 'main' } + // steps { + // slackSend channel: '#product_deploy', color: '#FF9800', tokenCredentialId: 'slack-token', + // message: "🔔 *react* 운영 배포 승인 대기 중\n${env.GIT_COMMIT_MSG}\nStage: https://stage.sam.it.kr\n<${env.BUILD_URL}input|승인하러 가기>" + // timeout(time: 24, unit: 'HOURS') { + // input message: 'Stage 확인 후 운영 배포를 진행하시겠습니까?\nStage: https://stage.sam.it.kr', + // ok: '운영 배포 진행' + // } + // } + // } // ── main → Production 재빌드 (운영 환경변수) ── stage('Rebuild for Production') {