[Git][qa/jenkins.debian.net][master] 2 commits: djm: new action: offline - to mark nodes as offline
Holger Levsen (@holger)
gitlab at salsa.debian.org
Wed Jan 3 14:35:43 GMT 2024
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
a97ae927 by Holger Levsen at 2024-01-03T15:34:54+01:00
djm: new action: offline - to mark nodes as offline
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
58430753 by Holger Levsen at 2024-01-03T15:35:07+01:00
reproducible nodes: mark jtx1b-armhf-rb as offline
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
2 changed files:
- bin/djm
- jenkins-home/offline_nodes
Changes:
=====================================
bin/djm
=====================================
@@ -4,7 +4,7 @@
#
# djm - documented jenkins maintenance
#
-# Copyright 2023 Holger Levsen <holger at layer-acht.org>
+# Copyright 2023-2024 Holger Levsen <holger at layer-acht.org>
# released under the GPLv2
#
@@ -181,6 +181,7 @@ show_help(){
echo " d|deploy-git deploy jenkins.debian.net.git"
echo " f|fix-future fix clock on hosts running in the future"
echo " j|jenkins-ui for when doing things manually in the jenkins-ui"
+ echo " o|offline mark hosts as offline"
echo " p|powercycle"
echo " r|reboot"
echo " rm|rmstamp remove stamp files (from pbuilder and update|jdn.sh)"
@@ -243,6 +244,7 @@ verify_target_action_reason(){
d|deploy-git) ACTION=deploy-git ;;
f|fix-future) ACTION=fix-future ;;
j|jenkins-ui) ACTION=jenkins-ui ;;
+ o|offline) ACTION=offline ;;
p|powercycle) ACTION=powercycle ; CONFIRM=true ;;
r|reboot) ACTION=reboot ; CONFIRM=true ;;
rm|rmstamp) ACTION=rmstamp ;;
@@ -598,6 +600,13 @@ djm_do() {
;;
jenkins-ui) echo "Documenting one manual action in the jenkins-ui."
;;
+ offline) (
+ cd `dirname $0`/..
+ sed -i "s#^\# investigation needed#\# investigation needed\n$NODE#" jenkins-home/offline_nodes
+ git add jenkins-home/offline_nodes
+ git commit -s -m "reproducible nodes: mark $SHORTNODE as offline"
+ )
+ ;;
bring-back) TMPFILE=$(mktemp -u)
OFF_NODES=~jenkins/offline_nodes
echo "Trying to mark $SHORTNODE as online. This is the diff for $OFF_NODES on jenkins.debian.net:"
=====================================
jenkins-home/offline_nodes
=====================================
@@ -14,6 +14,7 @@
# Also see https://pad.sfconservancy.org/p/rb-build-nodes-keep
# investigation needed
+jtx1b-armhf-rb.debian.net
# Down here nodes are automatically added by the maintenance job when they have
# been failing their health check or maintenance job for too long.
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/compare/b408fbd38a18d08aeeb0260bdd7db361f7335100...58430753b63c9ee31318d225c8a8d7e09e3580ab
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/compare/b408fbd38a18d08aeeb0260bdd7db361f7335100...58430753b63c9ee31318d225c8a8d7e09e3580ab
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/20240103/7681fb87/attachment-0001.htm>
More information about the Qa-jenkins-scm
mailing list