From 289f159b58be383b3f782aea9e8bdbadad73f2d8 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Thu, 12 May 2022 05:01:43 -0500 Subject: [PATCH] Pipeline does not produce error if there's nothing to commit. --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index dfcacd1..f72e788 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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" }