From c4f8c4365b49d5b4747627a7ca82766f77a0efb0 Mon Sep 17 00:00:00 2001 From: mayekkuzu Date: Thu, 26 Sep 2024 20:23:02 +0300 Subject: [PATCH] Updated Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 15bd610..1459e3f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,7 +6,7 @@ pipeline { steps { withCredentials([usernamePassword(credentialsId: 'QuizServerCreds', usernameVariable: 'USERNAME', passwordVariable: 'SERVER_IP')]) { sh 'ssh-keyscan ${SERVER_IP} > ~/.ssh/known_hosts' - sh 'rsync -avzhe --exclude "Jenkinsfile" ssh * ${USERNAME}@${SERVER_IP}:/var/www/public_html' + sh 'rsync -avzhe --exclude={'Jenkinsfile'} ssh * ${USERNAME}@${SERVER_IP}:/var/www/public_html' } } }