From 7b0f792e6627cc39591b82d815bacccdea8f8ab0 Mon Sep 17 00:00:00 2001 From: adam Date: Thu, 15 May 2025 12:01:40 -0400 Subject: [PATCH] rsync needs to -e "ssh -i "pk"". begin quotation escaping hell. --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 474013b..7b21b9f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -60,7 +60,7 @@ pipeline { { sh """#!/bin/bash ssh -i \"${PK}\" -tt ${linuxServiceAccount_USR}@${targetHost} 'rm -rf temp_deploy & mkdir -p temp_deploy' - rsync -i \"${PK}\" -a dist/ ${linuxServiceAccount_USR}@${env.targetHost}:temp_deploy + rsync -e \"ssh -i \"${PK}\"\" -a dist/ ${linuxServiceAccount_USR}@${env.targetHost}:temp_deploy """ } }