deploy(lsw-vpn): 更新部署流程

- 将配置名称从 'tencent-SG' 修改为 'lsw-vpn'
- 更新执行命令,从解压和移动文件改为 git pull 方式更新代码
- 修改远程目录为 '/opt/vless-api'
This commit is contained in:
aixianling
2025-02-25 12:02:04 +08:00
parent 9cca2cedf9
commit 8744038d25

View File

@@ -4,10 +4,10 @@ pipeline {
stage('部署') {
steps {
echo 'Deploying...'
sshPublisher(publishers: [sshPublisherDesc(configName: 'tencent-SG',
sshPublisher(publishers: [sshPublisherDesc(configName: 'lsw-vpn',
transfers: [sshTransfer(
sourceFiles: "",
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 .",
execCommand: "cd /opt/vless-api&&git pull",
remoteDirectory: "/opt/vless-api")
], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: true)
])