[Qa-jenkins-scm] [jenkins.debian.net] 01/05: reproducible: refactor

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 38a3bd9979b55b2e0483d3c8a0c67c7b4426425c
Author: Holger Levsen <holger at layer-acht.org>
Date:   Mon Mar 16 13:26:30 2015 +0100

    reproducible: refactor
---
 bin/reproducible_schedule_on_demand.sh | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/bin/reproducible_schedule_on_demand.sh b/bin/reproducible_schedule_on_demand.sh
index ef953cf..0be8941 100755
--- a/bin/reproducible_schedule_on_demand.sh
+++ b/bin/reproducible_schedule_on_demand.sh
@@ -16,11 +16,13 @@ schedule_packages() {
 	# so schedule them in the past, so they are picked earlier :)
 	DATE="2014-10-01 00:23"
 	TMPFILE=$(mktemp)
-	for PKG in $PACKAGES ; do
-		echo "REPLACE INTO schedule (package_id, date_scheduled, date_build_started) VALUES ('$PKG', '$DATE', '');" >> $TMPFILE
+	for PKG_ID in $@ ; do
+		echo "REPLACE INTO schedule (package_id, date_scheduled, date_build_started) VALUES ('$PKG_ID', '$DATE', '');" >> $TMPFILE
 	done
 	cat $TMPFILE | sqlite3 -init $INIT ${PACKAGES_DB}
 	rm $TMPFILE
+	cd /srv/jenkins/bin
+	python3 -c "from reproducible_html_indexes import build_page; build_page('scheduled')"
 }
 
 check_candidates() {
@@ -68,9 +70,7 @@ fi
 MESSAGE="$TOTAL $PACKAGES_TXT $ACTION for $SUITE: ${PACKAGES_NAMES:0:256}$BLABLABLA"
 
 # finally
-schedule_packages
-cd /srv/jenkins/bin
-python3 -c "from reproducible_html_indexes import build_page; build_page('scheduled')"
+schedule_packages $PACKAGES
 echo
 echo "$MESSAGE"
 if [ -z "${BUILD_URL:-}" ] ; then

-- 
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