[Qa-jenkins-scm] [jenkins.debian.net] 05/05: reproducible: call functions instead of the script, to reduce noise in output

Holger Levsen holger at moszumanska.debian.org
Mon Mar 16 12:56:22 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 05c71707693cd6bf917c0e60081f6084c6082763
Author: Holger Levsen <holger at layer-acht.org>
Date:   Mon Mar 16 13:52:32 2015 +0100

    reproducible: call functions instead of the script, to reduce noise in output
---
 bin/reproducible_maintainance.sh | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/bin/reproducible_maintainance.sh b/bin/reproducible_maintainance.sh
index 1fd5228..3552565 100755
--- a/bin/reproducible_maintainance.sh
+++ b/bin/reproducible_maintainance.sh
@@ -96,9 +96,12 @@ if [ ! -z "$FAILED_BUILDS" ] ; then
 	echo
 	echo "Rescheduling packages: "
 	for SUITE in $(echo $FAILED_BUILDS | sed "s# #\n#g" | cut -d "/" -f7 | sort -u) ; do
-		( for PKG in $(echo $FAILED_BUILDS | sed "s# #\n#g" | grep "/$SUITE/" | cut -d "/" -f9 | cut -d "_" -f1) ; do
-			echo $PKG
-		done ) | xargs /srv/jenkins/bin/reproducible_schedule_on_demand.sh $SUITE
+		CANDIDATES=$(for PKG in $(echo $FAILED_BUILDS | sed "s# #\n#g" | grep "/$SUITE/" | cut -d "/" -f9 | cut -d "_" -f1) ; do echo -n "$PKG " ; done)
+		check_candidates
+		if [ $TOTAL -ne 0 ] ; then
+			echo " - in $SUITE: $CANDIDATES"
+			schedule_packages $PACKAGE_IDS
+		fi
 	done
 	DIRTY=true
 fi

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list