Attempt at fixing deployment step in Jenkinsfile.

This commit is contained in:
Harrison Deng 2022-05-21 01:34:13 -05:00
parent 8f3c085baf
commit 7289f50f40

6
Jenkinsfile vendored
View File

@ -34,9 +34,9 @@ pipeline {
sshagent(['ce4c701d-098c-4706-8f32-c0af996a7769']) {
discordSend description: 'The RSEMCS server will now be rebooting! Checkout the build link for shutdown progress (startup occurs after shutdown and usually takes 1-2 minutes).', footer: '', image: '', link: '${env.BUILD_URL}', result: '', scmWebUrl: '', thumbnail: '', title: 'RS Jenkins - ${env.JOB_NAME}: Server is rebooting!', webhookURL: 'https://discord.com/api/webhooks/977367178884046919/LCJ_ngdNG1zo6Ak4CmzzUZbYD92LPUNn_mQO8IhwxoAVmswJo8p950qLFoQUck7LmIkf'
pwsh "ssh -o StrictHostKeyChecking=no gamehost@entertainment 'systemctl --user stop rsemcs'"
pwsh "rsync -a --update --filter=':- .gitignore' --exclude=./mods/ --exclude=./config/ ./** gamehost@entertainment:/home/gamehost/mcserver/"
pwsh "rsync -a --update --filter=':- .gitignore' --delete ./mods/ gamehost@entertainment:/home/gamehost/mcserver/mods"
pwsh "rsync -a --update --filter=':- .gitignore' --delete ./config gamehost@entertainment:/home/gamehost/mcserver/config"
pwsh "rsync -a --update --filter=':- .gitignore' --exclude=./mods/ --exclude='./config/' --exclude='./world' . gamehost@entertainment:/home/gamehost/mcserver/"
pwsh "rsync -a --update --filter=':- .gitignore' --delete ./mods/ gamehost@entertainment:/home/gamehost/mcserver/mods"
pwsh "rsync -a --update --filter=':- .gitignore' --delete ./config gamehost@entertainment:/home/gamehost/mcserver/config"
pwsh "ssh gamehost@entertainment 'systemctl --user start rsemcs'"
}
}