[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible: always explain node functions

Holger Levsen gitlab at salsa.debian.org
Sun Nov 25 19:15:41 GMT 2018


Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
6f1f94b4 by Holger Levsen at 2018-11-25T19:14:38Z
reproducible: always explain node functions

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/reproducible_html_nodes_info.sh


Changes:

=====================================
bin/reproducible_html_nodes_info.sh
=====================================
@@ -14,6 +14,18 @@ common_init "$@"
 # common code defining db access
 . /srv/jenkins/bin/reproducible_common.sh
 
+explain_nodes() {
+	case $JENKINS_NODENAME in
+		jenkins)	;;
+		profitbricks3)	write_page "<br /><small>(r-b Archlinux, OpenWrt, NetBSD, Coreboot builds)</small>" ;;
+		profitbricks4)	write_page "<br /><small>(r-b Archlinux, OpenWrt, NetBSD, Coreboot builds)</small>" ;;
+		profitbricks7)	write_page "<br /><small>(r-b F-Droid builds)</small>" ;;
+		profitbricks9)	write_page "<br /><small>(jenkins.d.n rebootstrap jobs)</small>" ;;
+		profitbricks10)	write_page "<br /><small>(jenkins.d.n chroot-installation jobs)</small>" ;;
+		*)		write_page "<br /><small>(r-b Debian builds)</small>" ;;
+	esac
+}
+
 build_nodes_health_page() {
 	#
 	# build node health page
@@ -74,15 +86,7 @@ build_nodes_health_page() {
 				esac
 			fi
 			write_page "<tr><td>$JENKINS_NODENAME"
-			case $JENKINS_NODENAME in
-				jenkins)	;;
-				profitbricks3)	write_page "<br /><small>(r-b Archlinux, OpenWrt, NetBSD, Coreboot builds)</small>" ;;
-				profitbricks4)	write_page "<br /><small>(r-b Archlinux, OpenWrt, NetBSD, Coreboot builds)</small>" ;;
-				profitbricks7)	write_page "<br /><small>(r-b F-Droid builds)</small>" ;;
-				profitbricks9)	write_page "<br /><small>(jenkins.d.n rebootstrap jobs)</small>" ;;
-				profitbricks10)	write_page "<br /><small>(jenkins.d.n chroot-installation jobs)</small>" ;;
-				*)		write_page "<br /><small>(r-b Debian builds)</small>" ;;
-			esac
+			explain_nodes
 			write_page "</td>"
 			# health check
 			URL="https://jenkins.debian.net/view/reproducible/view/Node_maintenance/job/reproducible_node_health_check_${ARCH}_${JENKINS_NODENAME}"
@@ -198,7 +202,9 @@ build_graph_overview_pages() {
 						armhf) 		JENKINS_NODENAME=$(echo $NODE | cut -d "-" -f1) ;;
 					esac
 				fi
-				write_page "<tr><td>$JENKINS_NODENAME</td>"
+				write_page "<tr><td>$JENKINS_NODENAME"
+				explain_nodes
+				write_page "</td>"
 				for GRAPH in jenkins_reproducible_builds cpu memory df swap load ; do
 					if [ "$GRAPH" = "jenkins_reproducible_builds" ] ; then
 						case $JENKINS_NODENAME in
@@ -290,6 +296,8 @@ build_job_health_page() {
 #
 # main
 #
+PAGE=""
+JENKINS_NODENAME=""
 build_job_health_page
 build_nodes_health_page
 build_graph_overview_pages



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/6f1f94b40c83d61a42c475743654a7ab0bcfcc40

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/6f1f94b40c83d61a42c475743654a7ab0bcfcc40
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20181125/7e8ec296/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list