From fb20edddb209a890ed049549c6761908426337cd Mon Sep 17 00:00:00 2001 From: "seonkyu.kim" Date: Mon, 4 Nov 2024 18:13:13 +0900 Subject: [PATCH] =?UTF-8?q?[=F0=9F=93=9D]=20Jenkins=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c66f5ab..685407f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,19 +21,19 @@ pipeline { // main 브랜치용 작업 def containerId = sh(script: "docker ps -qf 'name=${DOCKER_RELEASE_RUN_CONTAINER}'", returnStdout: true).trim() if (containerId) { - sh "docker cp ${WORKSPACE}/. ${containerId}:${APP_VOLUME_FRONT}" + sh "docker cp ${WORKSPACE}/. ${containerId}:${APP_VOLUME}" sh "docker start ${containerId}" } else { - error "Docker container ${DOCKER_CONTAINER_NAME} not found" + error "Docker container ${DOCKER_RELEASE_RUN_CONTAINER} not found" } } else if (env.GIT_BRANCH == 'debug') { // debug 브랜치용 작업 def containerId = sh(script: "docker ps -qf 'name=${DOCKER_DEBUG_RUN_CONTAINER}'", returnStdout: true).trim() if (containerId) { - sh "docker cp ${WORKSPACE}/. ${containerId}:${APP_VOLUME_FRONT}" + sh "docker cp ${WORKSPACE}/. ${containerId}:${APP_VOLUME}" sh "docker start ${containerId}" } else { - error "Docker container ${DOCKER_CONTAINER_NAME} not found" + error "Docker container ${DOCKER_DEBUG_RUN_CONTAINER} not found" } } }