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/' } } }