summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_scheduler.sh
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-02-16 22:55:44 +0100
committerMattia Rizzolo <mattia@mapreri.org>2015-02-16 22:55:44 +0100
commit1ddba25150bf1688eccfc11c6ca28b33bdde9927 (patch)
tree3cb694fdab60b2b0e3d98bd1aae17e13cde5bc29 /bin/reproducible_scheduler.sh
parent745e243fc691e729f44906e4842c3a406cc635a4 (diff)
downloadjenkins.debian.net-1ddba25150bf1688eccfc11c6ca28b33bdde9927.tar.xz
reproducible: use the html_indexes.py script to build the scheduled index pages in the scheduler jobs
Diffstat (limited to 'bin/reproducible_scheduler.sh')
-rwxr-xr-xbin/reproducible_scheduler.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/reproducible_scheduler.sh b/bin/reproducible_scheduler.sh
index af7eb5e1..d033ca3e 100755
--- a/bin/reproducible_scheduler.sh
+++ b/bin/reproducible_scheduler.sh
@@ -150,10 +150,9 @@ schedule_packages() {
# main
#
update_apt
-init_html
COUNT_SCHEDULED=$(sqlite3 ${PACKAGES_DB} 'SELECT count(name) FROM sources_scheduled')
if [ $COUNT_SCHEDULED -gt 250 ] ; then
- update_html_schedule
+ python3 -c "from reproducible_html_indexes import build_page; build_page('scheduled')"
echo "$COUNT_SCHEDULED packages scheduled, nothing to do."
exit 0
else
@@ -211,7 +210,7 @@ MESSAGE="$MESSAGE and $AMOUNT packages with the same version again, for a total
# finally
schedule_packages
-update_html_schedule
+python3 -c "from reproducible_html_indexes import build_page; build_page('scheduled')"
echo
echo "$MESSAGE"
kgb-client --conf /srv/jenkins/kgb/debian-reproducible.conf --relay-msg "$MESSAGE"