deploy(lsw-vpn): 更新部署流程
- 将配置名称从 'tencent-SG' 修改为 'lsw-vpn' - 更新执行命令,从解压和移动文件改为 git pull 方式更新代码 - 修改远程目录为 '/opt/vless-api'
This commit is contained in:
4
pipeline
4
pipeline
@@ -4,10 +4,10 @@ pipeline {
|
|||||||
stage('部署') {
|
stage('部署') {
|
||||||
steps {
|
steps {
|
||||||
echo 'Deploying...'
|
echo 'Deploying...'
|
||||||
sshPublisher(publishers: [sshPublisherDesc(configName: 'tencent-SG',
|
sshPublisher(publishers: [sshPublisherDesc(configName: 'lsw-vpn',
|
||||||
transfers: [sshTransfer(
|
transfers: [sshTransfer(
|
||||||
sourceFiles: "",
|
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")
|
remoteDirectory: "/opt/vless-api")
|
||||||
], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: true)
|
], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: true)
|
||||||
])
|
])
|
||||||
|
|||||||
Reference in New Issue
Block a user