Updated Jenkinsfile
Some checks failed
Job Folder/Gitea Instance/psniquiz/pipeline/head There was a failure building this commit

This commit is contained in:
mayekkuzu 2024-09-26 20:23:02 +03:00
parent bb08e911f4
commit c4f8c4365b

2
Jenkinsfile vendored
View File

@ -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'
}
}
}