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

This commit is contained in:
mayekkuzu 2024-09-26 21:22:32 +03:00
parent 370ecc6556
commit 96e0d30b63

1
Jenkinsfile vendored
View File

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