[Qa-jenkins-scm] [jenkins.debian.net] 01/02: reproducible: also include profitbricks 3+4+7 in health overview

Holger Levsen holger at layer-acht.org
Thu Jun 15 13:28:52 UTC 2017


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 713a0d10d3a0dd612962080054fea52a3a43725f
Author: Holger Levsen <holger at layer-acht.org>
Date:   Thu Jun 15 15:27:23 2017 +0200

    reproducible: also include profitbricks 3+4+7 in health overview
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/reproducible_html_nodes_info.sh | 68 ++++++++++++++++++++++++-------------
 1 file changed, 45 insertions(+), 23 deletions(-)

diff --git a/bin/reproducible_html_nodes_info.sh b/bin/reproducible_html_nodes_info.sh
index a98a484..7f7d6d0 100755
--- a/bin/reproducible_html_nodes_info.sh
+++ b/bin/reproducible_html_nodes_info.sh
@@ -30,7 +30,7 @@ write_page "<p style=\"clear:both;\">"
 for ARCH in ${ARCHS} ; do
 	write_page "<h3>$ARCH nodes</h3>"
 	write_page "<table>"
-	write_page "<tr><th>Name</th><th>health check</th><th>maintenance</th><th>worker.log links</th>"
+	write_page "<tr><th>Name</th><th>health check</th><th>maintenance</th><th>Debian worker.log links</th>"
 		for SUITE in ${SUITES} ; do
 			write_page "<th>schroot setup $SUITE</th>"
 		done
@@ -38,7 +38,17 @@ for ARCH in ${ARCHS} ; do
 			write_page "<th>pbuilder setup $SUITE</th>"
 		done
 	write_page "</tr>"
-	for NODE in jenkins $BUILD_NODES ; do
+	# the following for-loop is a hack to insert nodes which are not part of the
+	# Debian Reproducible Builds node network but are using for reproducible builds
+	# tests of other projects…
+	REPRODUCIBLE_NODES="jenkins"
+	for NODE in $BUILD_NODES ; do
+		REPRODUCIBLE_NODES="$REPRODUCIBLE_NODES $NODE"
+		if [ "$NODE" = "profitbricks-build2-i386.debian.net" ] ; then
+			REPRODUCIBLE_NODES="$REPRODUCIBLE_NODES profitbricks-build3-amd64.debian.net profitbricks-build4-amd64.debian.net profitbricks-build7-amd64.debian.net"
+		fi
+	done
+	for NODE in $REPRODUCIBLE_NODES ; do
 		if [ -z "$(echo $NODE | grep $ARCH || true)" ] && [ "$NODE" != "jenkins" ] ; then
 			continue
 		elif [ "$NODE" = "jenkins" ] && [ "$ARCH" != "amd64" ] ; then
@@ -61,30 +71,42 @@ for ARCH in ${ARCHS} ; do
 		URL="https://jenkins.debian.net/view/reproducible/view/Node_maintenance/job/reproducible_maintenance_${ARCH}_${JENKINS_NODENAME}"
 		BADGE="$URL/badge/icon"
 		write_page "<td><a href='$URL'><img src='$BADGE' /></a></td>"
-		if [ "$JENKINS_NODENAME" = "jenkins" ] ; then
-			write_page "<td></td>"
-		else
-			write_page "<td>"
-			SHORTNAME=$(echo $NODE | cut -d '.' -f1)
-			for WORKER in $(grep "${ARCH}_" /srv/jenkins/bin/reproducible_build_service.sh | grep -v \# |grep $SHORTNAME | cut -d ')' -f1) ; do
-				write_page "<a href='https://jenkins.debian.net/userContent/reproducible/debian/build_service/${WORKER}/worker.log'>"
-				write_page "$(echo $WORKER |cut -d '_' -f2)</a> "
-			done
-			write_page "</td>"
-		fi
+		case $JENKINS_NODENAME in
+			jenkins)	write_page "<td></td>" ;;
+			profitbricks3)	write_page "<td></td>" ;;
+			profitbricks4)	write_page "<td></td>" ;;
+			profitbricks7)	write_page "<td></td>" ;;
+			*)		write_page "<td>"
+					SHORTNAME=$(echo $NODE | cut -d '.' -f1)
+					for WORKER in $(grep "${ARCH}_" /srv/jenkins/bin/reproducible_build_service.sh | grep -v \# |grep $SHORTNAME | cut -d ')' -f1) ; do
+						write_page "<a href='https://jenkins.debian.net/userContent/reproducible/debian/build_service/${WORKER}/worker.log'>"
+						write_page "$(echo $WORKER |cut -d '_' -f2)</a> "
+					done
+					write_page "</td>"
+					;;
+		esac
 		for SUITE in ${SUITES} ; do
-			URL="https://jenkins.debian.net/view/reproducible/view/Debian_setup_${ARCH}/job/reproducible_setup_schroot_${SUITE}_${ARCH}_${JENKINS_NODENAME}"
-			BADGE="$URL/badge/icon"
-			write_page "<td><a href='$URL'><img src='$BADGE' /></a></td>"
+			case $JENKINS_NODENAME in
+				profitbricks3)	write_page "<td></td>" ;;
+				profitbricks4)	write_page "<td></td>" ;;
+				profitbricks7)	write_page "<td></td>" ;;
+				*)		URL="https://jenkins.debian.net/view/reproducible/view/Debian_setup_${ARCH}/job/reproducible_setup_schroot_${SUITE}_${ARCH}_${JENKINS_NODENAME}"
+						BADGE="$URL/badge/icon"
+						write_page "<td><a href='$URL'><img src='$BADGE' /></a></td>"
+						;;
+			esac
 		done
 		for SUITE in ${SUITES} ; do
-			if [ "$JENKINS_NODENAME" = "jenkins" ] ; then
-				write_page "<td colspan='3'></td>"
-			else
-				URL="https://jenkins.debian.net/view/reproducible/view/Debian_setup_${ARCH}/job/reproducible_setup_pbuilder_${SUITE}_${ARCH}_${JENKINS_NODENAME}"
-				BADGE="$URL/badge/icon"
-				write_page "<td><a href='$URL'><img src='$BADGE' /></a></td>"
-			fi
+			case $JENKINS_NODENAME in
+				jenkins)	write_page "<td></td>" ;;
+				profitbricks3)	write_page "<td></td>" ;;
+				profitbricks4)	write_page "<td></td>" ;;
+				profitbricks7)	write_page "<td></td>" ;;
+				*)		URL="https://jenkins.debian.net/view/reproducible/view/Debian_setup_${ARCH}/job/reproducible_setup_pbuilder_${SUITE}_${ARCH}_${JENKINS_NODENAME}"
+						BADGE="$URL/badge/icon"
+						write_page "<td><a href='$URL'><img src='$BADGE' /></a></td>"
+						;;
+			esac
 		done
 		write_page "</tr>"
 	done

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