Updated Jenkinsfile.

This commit is contained in:
Harrison Deng 2022-05-13 14:57:42 -05:00
parent eda93d1085
commit 7a4c5ab388

4
Jenkinsfile vendored
View File

@ -27,7 +27,9 @@ pipeline {
sh "rm -rf world"
sshagent(['ce4c701d-098c-4706-8f32-c0af996a7769']) {
sh "ssh -o StrictHostKeyChecking=no gamehost@entertainment 'systemctl --user stop rsemcs'"
sh "rsync -a --update --delete-after ./** gamehost@entertainment:/home/gamehost/mcserver/"
sh "rsync -a --update --exclude ./mods/ --exclude ./config/ ./** gamehost@entertainment:/home/gamehost/mcserver/"
sh "rsync -a --update --delete ./mods/ gamehost@entertainment:/home/gamehost/mcserver/mods"
sh "rsync -a --update --delete ./config/ gamehost@entertainment:/home/gamehost/mcserver/config"
sh "ssh gamehost@entertainment 'systemctl --user start rsemcs'"
}
}