Commit 93c3a7ad authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible: make a distinction between systems automatically and manually...


reproducible: make a distinction between systems automatically and manually marked offline in node health overview

Signed-off-by: default avatarHolger Levsen <holger@layer-acht.org>
parent dd2a78dc
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -73,12 +73,15 @@ 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
			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
			fi
			# maintenance
			URL="https://jenkins.debian.net/view/reproducible/view/Node_maintenance/job/reproducible_maintenance_${ARCH}_${JENKINS_NODENAME}"
			BADGE="$URL/badge/icon"