[📝] Jenkinsfile 수정

This commit is contained in:
김선규 2024-11-05 10:09:48 +09:00
parent 7c573c7ffe
commit 22d9d86b7e

4
Jenkinsfile vendored
View File

@ -22,7 +22,7 @@ pipeline {
def containerId = sh(script: "docker ps -qf 'name=${DOCKER_RELEASE_RUN_CONTAINER}'", returnStdout: true).trim()
if (containerId) {
sh "docker cp ${WORKSPACE}/. ${containerId}:${APP_VOLUME}"
sh "docker start ${containerId}"
sh "docker start ${DOCKER_RELEASE_CONTAINER}"
} else {
error "Docker container ${DOCKER_RELEASE_RUN_CONTAINER} not found"
}
@ -31,7 +31,7 @@ pipeline {
def containerId = sh(script: "docker ps -qf 'name=${DOCKER_DEBUG_RUN_CONTAINER}'", returnStdout: true).trim()
if (containerId) {
sh "docker cp ${WORKSPACE}/. ${containerId}:${APP_VOLUME}"
sh "docker start ${containerId}"
sh "docker start ${DOCKER_DEBUG_CONTAINER}"
} else {
error "Docker container ${DOCKER_DEBUG_RUN_CONTAINER} not found"
}