Update Jenkinsfile
All checks were successful
Jobs Folder/Gitea Instance/pipeline/head This commit looks good
All checks were successful
Jobs Folder/Gitea Instance/pipeline/head This commit looks good
This commit is contained in:
parent
fa361613bc
commit
69e8b432a2
1
Jenkinsfile
vendored
1
Jenkinsfile
vendored
@ -5,6 +5,7 @@ pipeline {
|
||||
stage('Copy Files on Server') {
|
||||
steps {
|
||||
withCredentials([usernamePassword(credentialsId: 'QuizServerCreds', usernameVariable: 'USERNAME', passwordVariable: 'SERVER_IP')]) {
|
||||
sh 'ssh-keyscan ${SERVER_IP} > ~/.ssh/known_hosts'
|
||||
sh 'rsync -avzhe ssh * ${USERNAME}@${SERVER_IP}:/var/www/public_html'
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user