From adbf1c80577eec1c029b28be53c5bab7fdf6aa25 Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 18 Feb 2025 15:12:17 +0800 Subject: [PATCH] =?UTF-8?q?ci(chuanqi=5Fserver=5Fpro=5Fjenkins):=20?= =?UTF-8?q?=E9=87=8D=E5=90=AF=E5=AE=B9=E5=99=A8=E5=B9=B6=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 git pull 后添加 docker restart 命令以重启容器 - 移除了注释掉的 Docker 重启命令 --- chuanqi_server_pro_jenkins | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chuanqi_server_pro_jenkins b/chuanqi_server_pro_jenkins index 55bf351..9a2048a 100644 --- a/chuanqi_server_pro_jenkins +++ b/chuanqi_server_pro_jenkins @@ -7,11 +7,10 @@ pipeline { sshPublisher(publishers: [sshPublisherDesc(configName: 'huawei68', transfers: [sshTransfer( sourceFiles: '', - execCommand: 'cd /mnt/data/docker/chuanqi-server-instance&&git pull', + execCommand: 'cd /mnt/data/docker/chuanqi-server-instance&&git pull&&docker restart chuanqi-server-logic', remoteDirectory: '.') ], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: true) ]) - // sh 'docker restart chuanqi-server-logic' } } }