summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-03-16 13:52:32 +0100
committerHolger Levsen <holger@layer-acht.org>2015-03-16 13:52:32 +0100
commit05c71707693cd6bf917c0e60081f6084c6082763 (patch)
treeaeb58e59878ac4b5bf35d559501395f5016d2d94 /bin
parent2b6f9c9eb0d7d115e60b2ecd5412d2ce38fb5787 (diff)
downloadjenkins.debian.net-05c71707693cd6bf917c0e60081f6084c6082763.tar.xz
reproducible: call functions instead of the script, to reduce noise in output
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_maintainance.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/bin/reproducible_maintainance.sh b/bin/reproducible_maintainance.sh
index 1fd52287..3552565e 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