Pipeline does not produce error if there's nothing to commit.

This commit is contained in:
Harrison Deng 2022-05-12 05:01:43 -05:00
parent 9b6baa4df3
commit 289f159b58

2
Jenkinsfile vendored
View File

@ -28,7 +28,7 @@ pipeline {
sh "git clean -dfX"
sh "git add mods/**"
sh "git add config/**"
sh "git commit -a -m 'Automatic integration of latest modpack.'"
sh "git commit -a -m 'Automatic integration of latest modpack.' && exit 0"
sshagent(['108c5045-64d1-42a6-acd7-a39da5e096d1']) {
sh "git push"
}