summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_schedule_on_demand.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-03-16 13:26:30 +0100
committerHolger Levsen <holger@layer-acht.org>2015-03-16 13:26:30 +0100
commit38a3bd9979b55b2e0483d3c8a0c67c7b4426425c (patch)
tree8bc9b330511b8236a53b94c622ca76b24c7ed516 /bin/reproducible_schedule_on_demand.sh
parent7f3eac6977760f4bc121b23ead578eca5be265fe (diff)
downloadjenkins.debian.net-38a3bd9979b55b2e0483d3c8a0c67c7b4426425c.tar.xz
reproducible: refactor
Diffstat (limited to 'bin/reproducible_schedule_on_demand.sh')
-rwxr-xr-xbin/reproducible_schedule_on_demand.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/reproducible_schedule_on_demand.sh b/bin/reproducible_schedule_on_demand.sh
index ef953cf7..0be89415 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