ci: 更新 web 项目配置和生产环境部署
- 在 web 配置中添加 gameEui.json 文件复制操作 - 在生产环境部署中添加 gameEui.json 文件移动操作
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user