From 7ff2a7796527784501d7b634a0e5eee140ff378f 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 10:07:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9b27d642..23d4baa5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -42,8 +42,14 @@ pipeline { expression { params.publish_type == "ui" || params.publish_type == "all" } } steps { - dir("$WORKSPACE/ui/dasadmin") { - sh "rsync -avP --delete dist/** root@192.168.109.195:/das/ui" + 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/dist/', into: '/das/ui/' } } }