fix(deploy): 修复传奇网页版部署脚本
- 在 chuanqi_web_pro_jenkins 文件中,修改了 SSH 发布的执行命令 - 为确保 dist.zip 文件被正确传输到目标目录,添加了 mv 命令 - 此修改适用于 chuanqi-xi 和 ali 两个配置
This commit is contained in:
@@ -28,7 +28,7 @@ pipeline {
|
||||
sshPublisher(publishers: [sshPublisherDesc(configName: 'chuanqi-xi',
|
||||
transfers: [sshTransfer(
|
||||
sourceFiles: "dist.zip",
|
||||
execCommand: "cd /opt/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 .",
|
||||
execCommand: "cd /opt/chuanqi/web&&mv ~/opt/chuanqi/web/dist.zip .&&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: "/opt/chuanqi/web")
|
||||
], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: true)
|
||||
])
|
||||
@@ -36,7 +36,7 @@ pipeline {
|
||||
sshPublisher(publishers: [sshPublisherDesc(configName: 'ali',
|
||||
transfers: [sshTransfer(
|
||||
sourceFiles: "dist.zip",
|
||||
execCommand: "cd /opt/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 .",
|
||||
execCommand: "cd /opt/chuanqi/web&&mv ~/opt/chuanqi/web/dist.zip .&&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: "/opt/chuanqi/web")
|
||||
], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: true)
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user