psniquiz/Jenkinsfile
mayekkuzu fa361613bc
Some checks failed
Jobs Folder/Gitea Instance/pipeline/head There was a failure building this commit
Update Jenkinsfile
2024-09-26 21:23:46 +03:00

13 lines
387 B
Groovy

pipeline {
agent any
stages {
stage('Copy Files on Server') {
steps {
withCredentials([usernamePassword(credentialsId: 'QuizServerCreds', usernameVariable: 'USERNAME', passwordVariable: 'SERVER_IP')]) {
sh 'rsync -avzhe ssh * ${USERNAME}@${SERVER_IP}:/var/www/public_html'
}
}
}
}
}