[Qa-jenkins-scm] [jenkins.debian.net] 01/03: reproducible dashboard: use less vertical space to show hostnames used

Holger Levsen holger at moszumanska.debian.org
Tue Feb 9 11:28:34 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 8dff00a00bb91208b59bef93427e4a3020213ec6
Author: Holger Levsen <holger at layer-acht.org>
Date:   Tue Feb 9 11:48:33 2016 +0100

    reproducible dashboard: use less vertical space to show hostnames used
---
 bin/reproducible_common.sh | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index a410c5a..f8d82b9 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -366,13 +366,21 @@ write_explaination_table() {
 	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:"
+		local FIRST=""
 		for a in ${ARCHS} ; do
+			local ARCH_NODES=""
+			write_page "<br />  "
 			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)"
+					ARCH_NODES="${ARCH_NODES}$(echo $i | cut -d '.' -f1 | sed -s 's# ##g')"
+					if [ -z $FIRST ] ; then
+						FIRST=", "
+					else
+						ARCH_NODES="${ARCH_NODES}$FIRST"
+					fi
 				fi
 			done
+			write_page "${ARCH_NODES}"
 		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>"

-- 
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