[Git][qa/jenkins.debian.net][master] djm: prevent accidental reboots of o4 because of a long running job from josch
Holger Levsen (@holger)
gitlab at salsa.debian.org
Mon Nov 4 12:21:05 GMT 2024
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
d44b4ed7 by Holger Levsen at 2024-11-04T13:20:53+01:00
djm: prevent accidental reboots of o4 because of a long running job from josch
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- bin/djm
Changes:
=====================================
bin/djm
=====================================
@@ -570,8 +570,12 @@ djm_do() {
# action
#
case $ACTION in
- reboot) ( ssh $NODE "sudo reboot" || xterm -T "$SHORTNODE / $ACTION failed" -class deploy-jenkins -bg $BG -fa 'DejaVuSansMono' -fs 10 -e "echo -e 'ssh to $NODE failed, thus rebooting failed.\n\npress enter to continue' ; read a " )
- run_xterm2wait4node_comeback
+ reboot) if [ "$NODE" == "osuosl4-amd64.debian.net" ] ; then
+ echo "Skipping rebooting $NODE because josch is running something there...."
+ else
+ ( ssh $NODE "sudo reboot" || xterm -T "$SHORTNODE / $ACTION failed" -class deploy-jenkins -bg $BG -fa 'DejaVuSansMono' -fs 10 -e "echo -e 'ssh to $NODE failed, thus rebooting failed.\n\npress enter to continue' ; read a " )
+ run_xterm2wait4node_comeback
+ fi
;;
powercycle) case $SHORTNODE in
jenkins) `dirname $0`/powercycle_x86_nodes.py jenkins
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/d44b4ed734d939b4277506a460611fac599f2685
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/d44b4ed734d939b4277506a460611fac599f2685
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/20241104/d97bc498/attachment-0001.htm>
More information about the Qa-jenkins-scm
mailing list