From 03bb1239994a37ecd6adf88f0b70304ca7fae694 Mon Sep 17 00:00:00 2001 From: Jim Klimov <jim@jimklimov.com> Date: Mon, 06 Nov 2023 17:39:26 +0100 Subject: [PATCH] jenkinshelper*.ksh: stage_build_changed(): do not lose track of failures --- tools/jenkinshelper.ksh | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/tools/jenkinshelper.ksh b/tools/jenkinshelper.ksh index dd8c75c..c6c001d 100755 --- a/tools/jenkinshelper.ksh +++ b/tools/jenkinshelper.ksh @@ -55,6 +55,7 @@ # we try to be smart and assume that all updates will always touch # the components Makefile also (to update COMPONENT_REVISION, etc) stage_build_changed() { + worst=0 for f in $(git diff --name-only HEAD..origin/oi/hipster | grep Makefile; exit 0); do echo "jenkinshelper: building for ${f%/*}..." curpwd=$(pwd) @@ -62,7 +63,11 @@ rc=$? cd "${curpwd}" echo "jenkinshelper: done with ${f%/*} return code ${rc}" + if [ rc -ne 0 ] ; then + worst=$rc + fi done + return $worst } # prepare the pkg.depotd server instance, if an instance already -- Gitblit v1.9.3