summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-10-06 14:20:19 +0200
committerHolger Levsen <holger@layer-acht.org>2014-10-06 14:20:19 +0200
commitc2a3f94fdfaf552e9a9d4cc4f84c77691c470291 (patch)
tree493669d2af018a19679dcb6cc4d06f9dfce093ef /bin
parent1350375f56f0d9f7c5a5970f8a852fbe124f1e6c (diff)
downloadjenkins.debian.net-c2a3f94fdfaf552e9a9d4cc4f84c77691c470291.tar.xz
reproducible: improve job output
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_stats.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/reproducible_stats.sh b/bin/reproducible_stats.sh
index 06921293..7264efcf 100755
--- a/bin/reproducible_stats.sh
+++ b/bin/reproducible_stats.sh
@@ -40,6 +40,7 @@ GUESS_GOOD=$(echo "$PERCENT_GOOD*$AMOUNT/100" | bc)
write_index() {
echo "$1" >> index.html
+ echo "$1" | html2text
}
mkdir -p /var/lib/jenkins/userContent/rb-pkg/
@@ -79,7 +80,6 @@ finish_navi_frame() {
link_packages() {
for PKG in $@ ; do
- echo -n "."
VERSION=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT version FROM source_packages WHERE name = \"$PKG\"")
# remove epoch
EVERSION=$(echo $VERSION | cut -d ":" -f2)
@@ -127,12 +127,12 @@ link_packages() {
}
echo "Starting to write statistics index page."
+echo
write_index "<!DOCTYPE html><html><body>" > index.html
write_index "<h2>Statistics for reproducible builds</h2>"
write_index "<p>Results were obtained by <a href=\"$JENKINS_URL/view/reproducible\">several jobs running on jenkins.debian.net</a>. This page is updated after each job run.</p>"
write_index "<p>$COUNT_TOTAL packages attempted to build so far, that's $PERCENT_TOTAL% of $AMOUNT source packages in Debian $SUITE currently. Out of these, $PERCENT_GOOD% were successful, so quite wildly guessing this roughy means about $GUESS_GOOD packages should be reproducibly buildable!</p>"
write_index "<p>$COUNT_BAD packages ($PERCENT_BAD% of $COUNT_TOTAL) failed to built reproducibly: <code>"
-echo -n "Starting to loop through the packages tested"
EXTRA_STAR=true
link_packages $BAD
EXTRA_STAR=false
@@ -161,5 +161,4 @@ write_index "</p></body></html>"
echo
# job output
-html2text index.html
cp index.html /var/lib/jenkins/userContent/reproducible.html