From 4c3350377e904c583aa18c4c8c026b0cb7be3eb3 Mon Sep 17 00:00:00 2001 From: lzh Date: Mon, 30 Mar 2026 23:37:02 +0800 Subject: [PATCH] build(ci): hardcode stage deploy target --- Jenkinsfile | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index eeb3f712..82b563e6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -30,10 +30,6 @@ pipeline { // 部署配置(Prod 服务器内网地址) DEPLOY_HOST = '172.17.16.14' DEPLOY_PATH = '/opt/aiot-platform-cloud' - PROD_DEPLOY_HOST = '172.17.16.14' - PROD_DEPLOY_PATH = '/opt/aiot-platform-cloud' - STAGE_DEPLOY_HOST = '172.17.16.7' - STAGE_DEPLOY_PATH = '/opt/aiot-platform-cloud-stage' SSH_KEY = '/var/jenkins_home/.ssh/id_rsa' // 性能配置 - 将动态调整 @@ -67,13 +63,13 @@ pipeline { echo "Start Time: ${new Date()}" if (env.BRANCH_NAME == 'master') { env.DEPLOY_ENV = 'prod' - env.DEPLOY_HOST = env.PROD_DEPLOY_HOST - env.DEPLOY_PATH = env.PROD_DEPLOY_PATH + env.DEPLOY_HOST = '172.17.16.14' + env.DEPLOY_PATH = '/opt/aiot-platform-cloud' env.DEPLOY_COMPOSE_ARGS = '-f docker-compose.core.yml' } else if (env.BRANCH_NAME == 'stage/multi-tenant-isolation') { env.DEPLOY_ENV = 'stage' - env.DEPLOY_HOST = env.STAGE_DEPLOY_HOST - env.DEPLOY_PATH = env.STAGE_DEPLOY_PATH + env.DEPLOY_HOST = '172.17.16.7' + env.DEPLOY_PATH = '/opt/aiot-platform-cloud-stage' env.DEPLOY_COMPOSE_ARGS = '-f docker-compose.core.yml -f docker-compose.stage.override.yml' } else { env.DEPLOY_ENV = 'build-only'