mayekkuzu
fa361613bc
Some checks failed
Jobs Folder/Gitea Instance/pipeline/head There was a failure building this commit
13 lines
387 B
Groovy
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'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |