Introduced separate branch for modpack integration.

This commit is contained in:
Harrison Deng 2022-05-12 14:25:06 -05:00
parent f01703edaa
commit f1c96b02c0

7
Jenkinsfile vendored
View File

@ -6,10 +6,15 @@ pipeline {
branch '**/develop' branch '**/develop'
} }
steps { steps {
sshagent(['108c5045-64d1-42a6-acd7-a39da5e096d1']) {
sh "git fetch"
sh "git checkout -b latest-modpack"
sh "git merge develop --theirs"
sh "chmod u+x ./scripts/*.sh" sh "chmod u+x ./scripts/*.sh"
sh "./scripts/update_modpack.sh" sh "./scripts/update_modpack.sh"
} }
} }
}
stage("server launch test") { stage("server launch test") {
steps { steps {
sh 'echo "eula=true" > eula.txt' sh 'echo "eula=true" > eula.txt'
@ -25,7 +30,6 @@ pipeline {
branch '**/develop' branch '**/develop'
} }
steps { steps {
sh "git checkout develop"
sh "git clean -dfX" sh "git clean -dfX"
sh "git add mods/**" sh "git add mods/**"
sh "git add config/**" sh "git add config/**"
@ -33,6 +37,7 @@ pipeline {
sshagent(['108c5045-64d1-42a6-acd7-a39da5e096d1']) { sshagent(['108c5045-64d1-42a6-acd7-a39da5e096d1']) {
sh "git push" sh "git push"
} }
sh "git checkout develop"
} }
} }
stage("deploy") { stage("deploy") {