[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible: new script to monitor jenkins and trbo via a terminal

Holger Levsen gitlab at salsa.debian.org
Fri Aug 21 14:48:38 BST 2020



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


Commits:
b173ca56 by Holger Levsen at 2020-08-21T15:48:28+02:00
reproducible: new script to monitor jenkins and trbo via a terminal

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

- - - - -


1 changed file:

- + jenkins-shell-monitor.sh


Changes:

=====================================
jenkins-shell-monitor.sh
=====================================
@@ -0,0 +1,35 @@
+#!/bin/bash
+# vim: set noexpandtab:
+
+# Copyright © 2020 Holger Levsen (holger at layer-acht.org)
+# released under the GPLv2
+#
+#
+# to be run manually on jenkins in a terminal
+
+#
+# main
+#
+main_loop() {
+	SESSIONS=$(find /var/lib/schroot/session/ |wc -l)
+	for i in 1 2 3 4 5 ; do
+		reset
+		echo -n "$(date -u)"
+		echo "     $(uptime)"
+		echo
+		cat ~jenkins/offline_nodes
+		echo
+		figlet $(cat ~/userContent/reproducible/trbo.status) 
+		echo " ^^^ trbo status"
+		echo
+		figlet $SESSIONS
+		echo " ^^^ schroot sessions"
+		echo
+		sleep 60
+	done
+}
+
+
+while true ; do
+	main_loop
+done



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/b173ca56962f182faa05d6a65fc9f84a8fd5bc53

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/b173ca56962f182faa05d6a65fc9f84a8fd5bc53
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/20200821/fa9746a5/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list