summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/reproducible_html_all_packages.sh24
-rw-r--r--job-cfg/reproducible.yaml9
2 files changed, 33 insertions, 0 deletions
diff --git a/bin/reproducible_html_all_packages.sh b/bin/reproducible_html_all_packages.sh
new file mode 100755
index 00000000..1b98c089
--- /dev/null
+++ b/bin/reproducible_html_all_packages.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+# Copyright 2014 Holger Levsen <holger@layer-acht.org>
+# released under the GPLv=2
+
+. /srv/jenkins/bin/common-functions.sh
+common_init "$@"
+
+# common code defining db access
+. /srv/jenkins/bin/reproducible_common.sh
+
+set +x
+init_html
+
+#
+# attempt to rebuild all package pages
+# (will only happen if they don't exist or are older than build date.)
+# (should never be needed)
+#
+PACKAGES=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT name FROM source_packages WHERE status != \"\"")
+COUNT_TOTAL=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT COUNT(name) FROM source_packages WHERE status != \"\"")
+echo "$(date) - processing $COUNT_TOTAL packages... this will take a while."
+process_packages ${PACKAGES}
+
diff --git a/job-cfg/reproducible.yaml b/job-cfg/reproducible.yaml
index 1cf1cbd5..12f51ac4 100644
--- a/job-cfg/reproducible.yaml
+++ b/job-cfg/reproducible.yaml
@@ -150,6 +150,10 @@
name: '{name}_html_notes'
- job-template:
+ defaults: reproducible
+ name: '{name}_html_all_packages'
+
+- job-template:
defaults: reproducible_builder
name: '{name}_builder_alpha'
@@ -212,6 +216,11 @@
my_gitrepo: 'git://git.debian.org/git/reproducible/notes.git'
my_shell: '/srv/jenkins/bin/reproducible_html_notes.sh'
my_recipients: 'jenkins+debian-reproducible holger@layer-acht.org'
+ - '{name}_html_all_packages':
+ my_description: 'Generates HTML results (for all packages) for reproducible builds. This job is normally not needed and only run once a year.'
+ my_timed: '12 12 30 12 *'
+ my_shell: '/srv/jenkins/bin/reproducible_html_all_packages.sh'
+ my_recipients: 'holger@layer-acht.org'
- '{name}_builder_alpha':
my_description: 'Try to reproducibly build a scheduled package. This is one of several builder jobs.'
my_timed: 'H/2 * * * *'