From 7ece7a3853711e0a6619178e3d6bd6f24c73d146 Mon Sep 17 00:00:00 2001 From: biryu2000 Date: Sun, 25 May 2025 10:56:50 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A0=A0=ED=82=A8=EC=8A=A4=ED=8C=8C=EC=9D=BC?= =?UTF-8?q?=20=EC=88=98=EC=A0=95=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6f86c32..bb74979 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,12 +6,17 @@ pipeline { } stages { + stage('Checkout') { + steps { + // 필요한 경우 워크스페이스 초기화 + deleteDir() + git credentialsId: 'nightbug', url: 'https://gitea.biryu2000.kr/nightbug/sukjenogi-backend.git', branch: 'master' + } + } + stage('Build & Deploy') { steps { - echo '🔄 기존 컨테이너 중지 중...' - sh 'docker compose down' - - echo '🚀 새 이미지 빌드 및 컨테이너 실행 중...' + sh 'docker compose down || true' // 실패해도 계속 sh 'docker compose up -d --build' } }