[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] jenkins-shell-monitor.sh: dont hide (boring) status of offline hosts
Holger Levsen (@holger)
gitlab at salsa.debian.org
Wed Mar 16 22:12:04 GMT 2022
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
a3768d4d by Holger Levsen at 2022-03-16T23:11:50+01:00
jenkins-shell-monitor.sh: dont hide (boring) status of offline hosts
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- bin/jenkins-shell-monitor.sh
Changes:
=====================================
bin/jenkins-shell-monitor.sh
=====================================
@@ -109,7 +109,7 @@ main_loop() {
fi
echo "=== jenkins/trbo shell monitor ==="
echo
- OFFLINE_NODES=$(grep -A 2342 Also ~jenkins/offline_nodes | sed '/^$/d' | sed "/^#/! s/^/$YELLOW/g" | sed "/^#/! s/$/$FOREGROUND_COLOR/g" | grep -v "nvestigation needed" | grep -v "Down here nodes" | grep -v "failing their health check")
+ OFFLINE_NODES=$(grep -A 2342 Also ~jenkins/offline_nodes | sed '/^$/d' | sed "/^#/! s/^/$YELLOW/g" | sed "/^#/! s/$/$FOREGROUND_COLOR/g" | grep -v "Down here nodes" | grep -v "failing their health check")
# ^^^ this line explained:
# we grep for everything after the string 'Also" because we know the document and this will never change... m( :)
# the first sed command removes empty lines
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/a3768d4df7abe7da78364739425b028efe4b00f8
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/a3768d4df7abe7da78364739425b028efe4b00f8
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/20220316/573f6658/attachment-0001.htm>
More information about the Qa-jenkins-scm
mailing list