[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 19:12:40 BST 2018


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


Commits:
09ae4602 by Holger Levsen at 2018-10-01T18:12:27Z
reproducible: make a distinction between systems automatically and manually marked offline in node health overview (fixup logic)

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
=====================================
@@ -74,7 +74,8 @@ build_nodes_health_page() {
 			write_page "<td><a href='$URL'><img src='$BADGE' /></a></td>"
 			# mark offline nodes
 			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
+			if [ -f "$JENKINS_OFFLINE_GIT_LIST" ] && grep -q "$NODE" "$JENKINS_OFFLINE_GIT_LIST" \
+			 && ( [ -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;">temporarily marked offline by jenkins</span></td>'
 				continue
 



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/09ae46022c729a7fe75568254debc7676f43d8b0

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/09ae46022c729a7fe75568254debc7676f43d8b0
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/0293be0c/attachment.html>


More information about the Qa-jenkins-scm mailing list