From dd21d95e93a12a6734a82e1a9f36573bf92dc158 Mon Sep 17 00:00:00 2001 From: Nana Janashia Date: Sat, 4 Dec 2021 15:54:42 +0000 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index da9a0da..7fac4a9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -43,8 +43,8 @@ pipeline { def ec2Instance = "ec2-user@35.180.251.121" sshagent(['ec2-server-key']) { - sh "scp server-cmds.sh ${ec2Instance}:/home/ec2-user" - sh "scp docker-compose.yaml ${ec2Instance}:/home/ec2-user" + sh "scp -o StrictHostKeyChecking=no server-cmds.sh ${ec2Instance}:/home/ec2-user" + sh "scp -o StrictHostKeyChecking=no docker-compose.yaml ${ec2Instance}:/home/ec2-user" sh "ssh -o StrictHostKeyChecking=no ${ec2Instance} ${shellCmd}" } }