diff --git a/Jenkinsfile b/Jenkinsfile index a093c4e..44b30f3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,7 +9,7 @@ pipeline { stages { stage('Clone Repository') { steps { - git url: 'https://git.ipstein.myds.me/AcaMate/AcaMate_Web.git', branch: env.GIT_BRANCH + git url: 'https://git.ipstein.myds.me/AcaMate/AcaMate_API.git', branch: env.BRANCH_NAME } } stage('Deploy') { @@ -19,19 +19,19 @@ pipeline { // main 브랜치용 작업 def containerId = sh(script: "docker ps -qf 'name=${DOCKER_RELEASE_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_CONTAINER} not found" } } else if (env.GIT_BRANCH == 'debug') { // debug 브랜치용 작업 def containerId = sh(script: "docker ps -qf 'name=${DOCKER_DEBUG_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_CONTAINER} not found" } } }