[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible dashboard: sort hostnames in variation table by arch and alphabetically
Holger Levsen
holger at moszumanska.debian.org
Sat Jan 9 01:16:59 UTC 2016
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 8738fdf9d5e2fcb0da85d9471b3ce04e95171cff
Author: Holger Levsen <holger at layer-acht.org>
Date: Sat Jan 9 02:16:40 2016 +0100
reproducible dashboard: sort hostnames in variation table by arch and alphabetically
---
bin/reproducible_common.sh | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index b904501..2fd3683 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>"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list