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:19:40 +03:00
parent 6d6fcaccf9
commit 02574ab33a

2
Jenkinsfile vendored
View File

@ -12,7 +12,7 @@ pipeline {
stage('Copy Files on Server') { stage('Copy Files on Server') {
steps { steps {
sh 'ssh-keyscan ${SERVER_IP} > ~/.ssh/known_hosts' sh 'ssh-keyscan ${SERVER_IP} > ~/.ssh/known_hosts'
sh 'rsync -avzhe --exclude 'Jenkinsfile' ssh * ${SERVER_USERNAME}@${SERVER_IP}:/var/www/public_html' sh 'rsync -avzhe --exclude "Jenkinsfile" ssh * ${SERVER_USERNAME}@${SERVER_IP}:/var/www/public_html'
} }
} }
} }