[Qa-jenkins-scm] [jenkins.debian.net] 02/03: reproducible: reschedule failed builds in correct suites

Holger Levsen holger at moszumanska.debian.org
Thu Mar 12 12:32:13 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 78cdc04086c894992d9ca4750336fc11c71dc2e0
Author: Holger Levsen <holger at layer-acht.org>
Date:   Thu Mar 12 13:28:25 2015 +0100

    reproducible: reschedule failed builds in correct suites
---
 bin/reproducible_maintainance.sh | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/bin/reproducible_maintainance.sh b/bin/reproducible_maintainance.sh
index 6532535..397b13a 100755
--- a/bin/reproducible_maintainance.sh
+++ b/bin/reproducible_maintainance.sh
@@ -95,9 +95,11 @@ if [ ! -z "$FAILED_BUILDS" ] ; then
 	echo "$FAILED_BUILDS"
 	echo
 	echo "Rescheduling packages: "
-	# FIXME the suite got hardcoded here, a way to recognize the original suite must be found
-	( for PKG in $(echo $FAILED_BUILDS | sed "s# #\n#g" | cut -d "/" -f9 | cut -d "_" -f1) ; do echo $PKG ; done ) | xargs /srv/jenkins/bin/reproducible_schedule_on_demand.sh sid
-	echo
+	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
+	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