diff options
author | Tom Willemse | 2020-10-10 01:05:47 -0700 |
---|---|---|
committer | Tom Willemse | 2020-10-10 01:05:47 -0700 |
commit | 0c0c1602e41505f9c2b0d23717ba5d65099675f0 (patch) | |
tree | 1cfa5ce569724539c904da2a5b80d6f3284d4383 | |
parent | 2a2bd05f8cbb8c64ab63206e3a622fb8ee81a943 (diff) | |
download | new-ryuslash.org-0c0c1602e41505f9c2b0d23717ba5d65099675f0.tar.gz new-ryuslash.org-0c0c1602e41505f9c2b0d23717ba5d65099675f0.zip |
Escape backslashes
I’m not sure how/when to escape these in declarative pipelines
-rw-r--r-- | Jenkinsfile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index e153d6c..7a8deec 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -48,7 +48,7 @@ pipeline { withCredentials([file(credentialsId: 'ryuslash.org-deploy-key-2', variable: 'KEY_FILE'), file(credentialsId: 'ryuslash-known-hosts', variable: 'KNOWN_HOSTS_FILE')]) { - sh 'rsync -e "ssh -p 4511 -o \"UserKnownHostsFile $KNOWN_HOSTS_FILE\" -i $KEY_FILE" -v -c -r --delete public/ "site@ryuslash.org:public_html/"' + sh 'rsync -e "ssh -p 4511 -o \\"UserKnownHostsFile $KNOWN_HOSTS_FILE\\" -i $KEY_FILE" -v -c -r --delete public/ "site@ryuslash.org:public_html/"' } } } |