Updated Jenkinsfile.
This commit is contained in:
parent
67af781e63
commit
8bbec1a94f
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@ -9,7 +9,7 @@ pipeline {
|
|||||||
sshagent(['108c5045-64d1-42a6-acd7-a39da5e096d1']) {
|
sshagent(['108c5045-64d1-42a6-acd7-a39da5e096d1']) {
|
||||||
sh "git fetch"
|
sh "git fetch"
|
||||||
sh "git checkout -B latest-modpack"
|
sh "git checkout -B latest-modpack"
|
||||||
sh "git merge --strategy-option theirs origin/develop"
|
sh "git merge -X theirs origin/develop"
|
||||||
sh "chmod u+x ./scripts/*.sh"
|
sh "chmod u+x ./scripts/*.sh"
|
||||||
sh "./scripts/update_modpack.sh"
|
sh "./scripts/update_modpack.sh"
|
||||||
}
|
}
|
||||||
@ -35,6 +35,7 @@ pipeline {
|
|||||||
sh "git add config/**"
|
sh "git add config/**"
|
||||||
sh "git commit -a -m 'Automatic integration of latest modpack.' && exit 0"
|
sh "git commit -a -m 'Automatic integration of latest modpack.' && exit 0"
|
||||||
sshagent(['108c5045-64d1-42a6-acd7-a39da5e096d1']) {
|
sshagent(['108c5045-64d1-42a6-acd7-a39da5e096d1']) {
|
||||||
|
sh "git pull -X theirs"
|
||||||
sh "git push --set-upstream origin latest-modpack"
|
sh "git push --set-upstream origin latest-modpack"
|
||||||
}
|
}
|
||||||
sh "git checkout develop"
|
sh "git checkout develop"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user