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