[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] simplefy script to powercycle arm64 nodes hosted at codethink.co.uk

Holger Levsen (@holger) gitlab at salsa.debian.org
Thu Dec 30 22:44:07 GMT 2021



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


Commits:
77199ee9 by Holger Levsen at 2021-12-30T23:43:56+01:00
simplefy script to powercycle arm64 nodes hosted at codethink.co.uk

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

- - - - -


1 changed file:

- bin/powercycle_arm64_nodes.sh


Changes:

=====================================
bin/powercycle_arm64_nodes.sh
=====================================
@@ -1,7 +1,7 @@
 #!/bin/bash
 # vim: set noexpandtab:
 
-# Copyright 2019 Holger Levsen <holger at layer-acht.org>
+# Copyright 2019-2021 Holger Levsen <holger at layer-acht.org>
 #           2020 Mattia Rizzolo <mattia at debian.org>
 # released under the GPLv2
 
@@ -10,22 +10,32 @@ JH=reproducible at jumpserv.colo.codethink.co.uk
 # validate input
 for i in "$@" ; do
 	case $i in
-		9|10|11|12|13|14|15|16)	: ;;
+		9|10|11|12|13|14|15|16)
+			ssh "$JH" ./sled-power-cycle.sh "$@"
+			;;
 		*) 	echo 'invalid parameter.'
-			exit 1
+			continue
 			;;
 	esac
 done
 
-# delegate work
-# shellcheck disable=2093
-exec ssh "$JH" ./sled-power-cycle.sh "$@"
+exit 0
+
+#
+# this is the end
+#
+
+
+
+
+
+
+
+
 
 
 # following is the script that lives at jumpserv.colo.codethink.co.uk
-# - note this is not executed due to the `exec` above.
 # - remember to place the moonshot-ilo password in the "ilopw" file
-
 for i in "$@" ; do
 	case "$i" in
 		9|10|11|12|13|14|15|16)	: ;;



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/77199ee9e9ed4242ce588282ce7a058827294d40
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/20211230/2d9bb7b9/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list