From 7a4c5ab388ddb3d4371482a079bcf4242ee7ff89 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Fri, 13 May 2022 14:57:42 -0500 Subject: [PATCH] Updated Jenkinsfile. --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index bcf006f..408c6f3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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'" } }