From 327b05574f0dc1b1046c72401256ce5afd3e3247 Mon Sep 17 00:00:00 2001
From: Marcel Telka <marcel@telka.sk>
Date: Tue, 02 Apr 2024 11:21:42 +0200
Subject: [PATCH] python/PyNUTClient: update to 2.8.2

---
 tools/jenkinshelper-main.ksh |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/tools/jenkinshelper-main.ksh b/tools/jenkinshelper-main.ksh
index 6fb1868..f78e1f7 100755
--- a/tools/jenkinshelper-main.ksh
+++ b/tools/jenkinshelper-main.ksh
@@ -55,14 +55,20 @@
 # 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() {
-	for f in $(git diff --name-only HEAD^1 | grep Makefile; exit 0); do
+	echo "Last successful commit $1"
+	worst=0
+	for f in $(cat changed_files.txt | grep Makefile; exit 0); do
 		echo "jenkinshelper: building for ${f%/*}..."
 		curpwd=$(pwd)
 		cd "${f%/*}" && COMPONENT_BUILD_ARGS=-j$(psrinfo -t -c) gmake publish
 		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