From 8744038d25d79259cbaac696fe64320192f167f6 Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 25 Feb 2025 12:02:04 +0800 Subject: [PATCH] =?UTF-8?q?deploy(lsw-vpn):=20=E6=9B=B4=E6=96=B0=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将配置名称从 'tencent-SG' 修改为 'lsw-vpn' - 更新执行命令,从解压和移动文件改为 git pull 方式更新代码 - 修改远程目录为 '/opt/vless-api' --- pipeline | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pipeline b/pipeline index 1b0c1ba..dd8d7a9 100644 --- a/pipeline +++ b/pipeline @@ -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) ])