From 481cac5a2e3a66255ee50075b73c0f547148e599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=B7=E6=88=90=E4=BC=9F?= Date: Thu, 20 Jun 2024 09:56:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5543b563..023276c6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -42,14 +42,8 @@ pipeline { expression { params.publish_type == "ui" || params.publish_type == "all" } } steps { - script { - def remote = [:] - remote.name = "master" - remote.host = "192.168.109.195" - remote.allowAnyHosts = true - remote.user = "root" - remote.password = "84805353" - sshPut remote: remote, from: '$WORKSPACE/ui/dasadmin/**', into: '/das/ui/' + dir("$WORKSPACE/ui/dasadmin") { + sh "rsync -av --delete dist/** root@192.168.109.195:/das/ui" } } }