From 370ecc655672dbaf3e48607334af873b477c816c Mon Sep 17 00:00:00 2001 From: mayekkuzu Date: Thu, 26 Sep 2024 21:15:23 +0300 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 058fb85..ba7e90b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,7 +5,7 @@ pipeline { stage('Copy Files on Server') { steps { withCredentials([usernamePassword(credentialsId: 'QuizServerCreds', usernameVariable: 'USERNAME', passwordVariable: 'SERVER_IP')]) { - sh 'mkdir ~/.ssh' + sh 'touch ~/.ssh/known_hosts' sh 'ssh-keyscan ${SERVER_IP} > ~/.ssh/known_hosts' sh 'rsync -avzhe ssh * ${USERNAME}@${SERVER_IP}:/var/www/public_html' }