summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-01-09 02:16:40 +0100
committerHolger Levsen <holger@layer-acht.org>2016-01-09 02:16:40 +0100
commit8738fdf9d5e2fcb0da85d9471b3ce04e95171cff (patch)
treedc09214534d8c996f2b1c23610eecf0254d11ce7 /bin
parent5c1474ed92c8329b290ff299700596d0a69ecf10 (diff)
downloadjenkins.debian.net-8738fdf9d5e2fcb0da85d9471b3ce04e95171cff.tar.xz
reproducible dashboard: sort hostnames in variation table by arch and alphabetically
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_common.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index b9045011..2fd3683f 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -365,7 +365,16 @@ write_explaination_table() {
fi
write_page "<table class=\"main\" id=\"variation\"><tr><th>variation</th><th>first build</th><th>second build</th></tr>"
if [ "$1" = "debian" ] ; then
- write_page "<tr><td>hostname</td><td>one of: $(for i in $BUILD_NODES ; do echo '<br />&nbsp;&nbsp;' ; echo $i | cut -d '.' -f1 ; done)</td><td>i-capture-the-hostname</td></tr>"
+ write_page "<tr><td>hostname</td><td>one of:"
+ for a in ${ARCHS} ; do
+ for i in $(echo $BUILD_NODES | sed -s 's# #\n#g' | sort -u) ; do
+ if [ "$(echo $i | grep $a)" ] ; then
+ write_page "<br />&nbsp;&nbsp;"
+ write_page "$(echo $i | cut -d '.' -f1)"
+ fi
+ done
+ done
+ write_page "</td><td>i-capture-the-hostname</td></tr>"
write_page "<tr><td>domainname</td><td>$(hostname -d)</td><td>i-capture-the-domainname</td></tr>"
else
write_page "<tr><td>hostname</td><td colspan=\"2\"> is not yet varied between rebuilds of $1.</td></tr>"