Updated Jenkinsfile.

This commit is contained in:
Harrison Deng 2022-05-12 16:34:02 -05:00
parent 4d4c2ae3fe
commit c90df770b7

2
Jenkinsfile vendored
View File

@ -48,7 +48,7 @@ pipeline {
sh "git clean -dfX" sh "git clean -dfX"
sh "rm -rf world" sh "rm -rf world"
sshagent(['ce4c701d-098c-4706-8f32-c0af996a7769']) { sshagent(['ce4c701d-098c-4706-8f32-c0af996a7769']) {
sh "ssh gamehost@entertainment 'systemctl --user stop rsemcs'" sh "ssh -o StrictHostKeyChecking=no gamehost@entertainment 'systemctl --user stop rsemcs'"
sh "scp -r ./** gamehost@entertainment:/home/gamehost/mcserver/" sh "scp -r ./** gamehost@entertainment:/home/gamehost/mcserver/"
sh "ssh gamehost@entertainment 'systemctl --user start rsemcs'" sh "ssh gamehost@entertainment 'systemctl --user start rsemcs'"
} }