[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] djm: add support for power-cycling ionos nodes

Holger Levsen (@holger) gitlab at salsa.debian.org
Fri Apr 7 01:28:56 BST 2023



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


Commits:
cd00f44d by Holger Levsen at 2023-04-07T02:28:41+02:00
djm: add support for power-cycling ionos nodes

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

- - - - -


1 changed file:

- bin/djm


Changes:

=====================================
bin/djm
=====================================
@@ -170,8 +170,16 @@ EOF
 			xterm -T "$SHORTNODE / reboot ($TMPFILE)" -class deploy-jenkins -bg $BG -fa 'DejaVuSansMono' -fs 10 -e "bash $TMPFILE" &
 			echo
 			;;
-		powercycle)	echo FIXME, not yet implemented.
-				exit 1
+		powercycle)	case $SHORTNODE in
+					jenkins)	./bin/powercycle_x86_nodes.py jenkins
+							;;
+					ionos*)		node=$(echo $NODE | cut -b 6- | cut -d '-' -f1)
+							./bin/powercycle_x86_nodes.py $node
+							;;
+					*)		echo FIXME, not yet implemented.
+							exit 1
+							;;
+				esac
 				;;
 		autoremove)	xterm -T "$SHORTNODE / autoremove" -class deploy-jenkins -bg $BG -fa 'DejaVuSansMono' -fs 10 -e "ssh $NODE 'sudo apt-get autoremove || read enter; sudo apt-get clean || read enter'" &
 			;;



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/cd00f44db81957e85aa49c586fe0d018f902dc06
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/20230407/d14ae46e/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list