diff --git a/Jenkinsfile b/Jenkinsfile index 9717111..c22690e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -44,7 +44,7 @@ pipeline { steps { echo "🛑 正在停止旧的容器(如果存在)..." sh ''' - if [ "$(docker ps -f 'name=\${CONTAINER_NAME}' --format '{{.Status}}')" ]; then + if [ "$(docker ps -f 'name=sczx_car-container' --format '{{.Status}}')" ]; then docker stop sczx_car-container docker rm sczx_car-container fi