From 533c4ba7daa9990ebf4e8d4747e2bf7b1d3ca8ba Mon Sep 17 00:00:00 2001 From: Nana Janashia Date: Sat, 3 Apr 2021 18:05:00 +0200 Subject: [PATCH] add correct user on remote --- Jenkinsfile-v1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile-v1 b/Jenkinsfile-v1 index 960d757..e01b845 100644 --- a/Jenkinsfile-v1 +++ b/Jenkinsfile-v1 @@ -9,7 +9,8 @@ pipeline { script { echo "copying ansible folder to ansible server" sshagent(['ansible-server-key']) { - sh "scp -o StrictHostKeyChecking=no ansible/ansible.cfg ${ANSIBLE_SERVER}:/root" + // ${ANSIBLE_SERVER}:/root without root will give jenkins@${ANSIBLE_SERVER}:/root + sh "scp -o StrictHostKeyChecking=no ansible/ansible.cfg root@${ANSIBLE_SERVER}:/root" } } }