diff options
author | Holger Levsen <holger@layer-acht.org> | 2016-01-09 02:16:40 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-01-09 02:16:40 +0100 |
commit | 8738fdf9d5e2fcb0da85d9471b3ce04e95171cff (patch) | |
tree | dc09214534d8c996f2b1c23610eecf0254d11ce7 | |
parent | 5c1474ed92c8329b290ff299700596d0a69ecf10 (diff) | |
download | jenkins.debian.net-8738fdf9d5e2fcb0da85d9471b3ce04e95171cff.tar.xz |
reproducible dashboard: sort hostnames in variation table by arch and alphabetically
-rwxr-xr-x | bin/reproducible_common.sh | 11 |
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 /> ' ; 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 /> " + 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>" |