[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible: make a distinction between systems automatically and manually…

Holger Levsen gitlab at salsa.debian.org
Mon Oct 1 18:49:17 BST 2018


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


Commits:
93c3a7ad by Holger Levsen at 2018-10-01T17:49:08Z
reproducible: make a distinction between systems automatically and manually marked offline in node health overview

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
=====================================
@@ -73,11 +73,14 @@ build_nodes_health_page() {
 			BADGE="$URL/badge/icon"
 			write_page "<td><a href='$URL'><img src='$BADGE' /></a></td>"
 			# mark offline nodes
-			if [ -f "$JENKINS_OFFLINE_LIST" ]; then
-				if grep -q "$NODE" "$JENKINS_OFFLINE_LIST"; then
-					write_page '</td><td colspan="10" style="text-align: center;"><span style="font-style: italic;">offline</span></td>'
-					continue
-				fi
+			JENKINS_OFFLINE_GIT_LIST=~jenkins-adm/jenkins.debian.net/jenkins-home/offline_nodes
+			if [ -f "$JENKINS_OFFLINE_GIT_LIST" ] && grep -q "$NODE" "$JENKINS_OFFLINE_GIT_LIST"; then
+				write_page '</td><td colspan="10" style="text-align: center;"><span style="font-style: italic;">temporarily marked offline by jenkins</span></td>'
+				continue
+
+			elif [ -f "$JENKINS_OFFLINE_LIST" ] && grep -q "$NODE" "$JENKINS_OFFLINE_LIST"; then
+				write_page '</td><td colspan="10" style="text-align: center;"><span style="font-style: italic;">offline</span></td>'
+				continue
 			fi
 			# maintenance
 			URL="https://jenkins.debian.net/view/reproducible/view/Node_maintenance/job/reproducible_maintenance_${ARCH}_${JENKINS_NODENAME}"



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/93c3a7ad52977b5b49ccf93b8b16375eb107232e

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/93c3a7ad52977b5b49ccf93b8b16375eb107232e
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/20181001/2bf69fbd/attachment.html>


More information about the Qa-jenkins-scm mailing list