Updated Jenkinsfile
All checks were successful
Job Folder/Gitea Instance/psniquiz/pipeline/head This commit looks good
All checks were successful
Job Folder/Gitea Instance/psniquiz/pipeline/head This commit looks good
This commit is contained in:
parent
aed8413a34
commit
103d62faf5
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -6,7 +6,7 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
withCredentials([usernamePassword(credentialsId: 'QuizServerCreds', usernameVariable: 'USERNAME', passwordVariable: 'SERVER_IP')]) {
|
withCredentials([usernamePassword(credentialsId: 'QuizServerCreds', usernameVariable: 'USERNAME', passwordVariable: 'SERVER_IP')]) {
|
||||||
sh 'ssh-keyscan ${SERVER_IP} > ~/.ssh/known_hosts'
|
sh 'ssh-keyscan ${SERVER_IP} > ~/.ssh/known_hosts'
|
||||||
sh 'rsync -avzhe --exclude={"Jenkinsfile"} ssh * ${USERNAME}@${SERVER_IP}:/var/www/public_html'
|
sh 'rsync -avzhe ssh * ${USERNAME}@${SERVER_IP}:/var/www/public_html'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user