diff --git a/Jenkinsfile b/Jenkinsfile index a1cae5f..53539ab 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -183,9 +183,11 @@ pipeline { services.each { service -> echo "Deploying ${service}..." + // 使用明确的命令格式 sh """ - docker compose -f docker-compose.core.yml pull ${service} - docker compose -f docker-compose.core.yml up -d ${service} + cd /opt/aiot-platform-cloud + /usr/bin/docker compose -f docker-compose.core.yml pull ${service} + /usr/bin/docker compose -f docker-compose.core.yml up -d ${service} """ // 等待服务健康检查