summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_stats.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-09-29 16:07:14 +0200
committerHolger Levsen <holger@layer-acht.org>2014-09-29 16:07:14 +0200
commit11b71c2c8a1070f3df3cde6158bd17ea01471259 (patch)
tree589784a756939091ddacf89393b6d717c8950b65 /bin/reproducible_stats.sh
parent68100e3f0bfe5d00cfaf502c179dc8296de695b1 (diff)
downloadjenkins.debian.net-11b71c2c8a1070f3df3cde6158bd17ea01471259.tar.xz
reproducible: preserve pbuilder logs for packages ftbfs and link those logs from the stats page
Diffstat (limited to 'bin/reproducible_stats.sh')
-rwxr-xr-xbin/reproducible_stats.sh14
1 files changed, 12 insertions, 2 deletions
diff --git a/bin/reproducible_stats.sh b/bin/reproducible_stats.sh
index 20889c02..fd0a3466 100755
--- a/bin/reproducible_stats.sh
+++ b/bin/reproducible_stats.sh
@@ -37,7 +37,6 @@ GUESS_GOOD=$(echo "$PERCENT_GOOD*$AMOUNT/100" | bc)
htmlecho() {
echo "$1" >> index.html
}
-rm index.html
htmlecho "<html><body>" > index.html
htmlecho "<h2>Statistics for reproducible builds</h2>"
@@ -52,7 +51,18 @@ for PKG in $BAD ; do
done
htmlecho "</code></p>"
htmlecho
-htmlecho "<p>$COUNT_UGLY packages failed to build from source: <code>${UGLY}</code></p>"
+htmlecho "<p>$COUNT_UGLY packages failed to build from source: <code>"
+for PKG in $UGLY ; do
+ VERSION=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT version FROM source_packages WHERE name = \"$PKG\"")
+ # remove epoch
+ VERSION=$(echo $VERSION | cut -d ":" -f2)
+ if [ -f /var/lib/jenkins/userContent/pbuilder/${PKG}_${VERSION}.pbuilder.log ] ; then
+ htmlecho "<a href=\"$JENKINS_URL/userContent/pbuilder/${PKG}_${VERSION}.pbuilder.log\">$PKG </a> "
+ else
+ htmlecho "$PKG "
+ fi
+done
+htmlecho "</code></p>"
if [ $COUNT_SOURCELESS -gt 0 ] ; then
htmlecho "<p>$COUNT_SOURCELESS packages which don't exist in sid and need investigation: <code>$SOURCELESS</code></p>"
fi