[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian armhf maint script: better aid in handling the node names

Holger Levsen gitlab at salsa.debian.org
Fri Apr 9 14:06:19 BST 2021



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


Commits:
912e00e0 by Holger Levsen at 2021-04-09T15:06:10+02:00
reproducible Debian armhf maint script: better aid in handling the node names

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

- - - - -


1 changed file:

- bin/powercycle_armhf_nodes.sh


Changes:

=====================================
bin/powercycle_armhf_nodes.sh
=====================================
@@ -6,10 +6,18 @@
 
 CONSOLESERVER=hbi1.dyn.aikidev.net
 
+if [ -z "$1" ] ; then
+	echo $0 needs one or more params:
+	./nodes/list_nodes | grep armhf | cut -d '-' -f1
+fi
+
 # validate input and modify if needed
 for i in "$@" ; do
 	case $i in
 		bpi0|hb0)	NODE=${i}a	;;
+		virt*)		echo "Sorry, I do not know how to handle $i, skipping."
+				continue
+				;;
 		*)		NODE=$i		;;
 	esac
 	ssh $CONSOLESERVER "cd /srv/rb/remote-power ; ./remote-power $NODE ccl"



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/912e00e05c35f3662ae20c38dc7118d9f6e14ee9
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/20210409/093cfe9f/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list