From 5d6f6eccc74d625b88213ff4435fead943a666c2 Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 21 Jan 2025 17:33:58 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=9B=B4=E6=96=B0=20web=20=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E9=85=8D=E7=BD=AE=E5=92=8C=E7=94=9F=E4=BA=A7=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 web 配置中添加 gameEui.json 文件复制操作 - 在生产环境部署中添加 gameEui.json 文件移动操作 --- chuanqi_web_config_jenkins | 1 + chuanqi_web_pro_jenkins | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/chuanqi_web_config_jenkins b/chuanqi_web_config_jenkins index 4b99a51..d001e62 100644 --- a/chuanqi_web_config_jenkins +++ b/chuanqi_web_config_jenkins @@ -28,6 +28,7 @@ pipeline { sh "cp linuxdo.php /home/cq/web/" sh "cp login.php /home/cq/web/" sh "cp api.php /home/cq/web/" + sh "cp gameEui.json /home/cq/web/resource" } } } diff --git a/chuanqi_web_pro_jenkins b/chuanqi_web_pro_jenkins index 3b6cec7..5fce77d 100644 --- a/chuanqi_web_pro_jenkins +++ b/chuanqi_web_pro_jenkins @@ -26,7 +26,7 @@ pipeline { sshPublisher(publishers: [sshPublisherDesc(configName: 'tencent-SG', transfers: [sshTransfer( sourceFiles: "dist.zip", - execCommand: "cd /home/chuanqi/web&&unzip -o dist.zip&&mv -f main.min_jocw9Tu2.js js/&&mv -f config.xml resource_Publish/cfg/&&rm -rf dist.zip&&chmod +x -R .", + execCommand: "cd /home/chuanqi/web&&unzip -o dist.zip&&mv -f main.min_jocw9Tu2.js js/&&mv -f config.xml resource_Publish/cfg/&&mv -f gameEui.json resource/&&rm -rf dist.zip&&chmod +x -R .", remoteDirectory: "/home/chuanqi/web") ], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: true) ])