[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] djm: support running djm from any directory, part 2

Holger Levsen (@holger) gitlab at salsa.debian.org
Sat Jun 10 01:19:11 BST 2023



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


Commits:
ef9ca8ba by Holger Levsen at 2023-06-10T02:18:58+02:00
djm: support running djm from any directory, part 2

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

- - - - -


1 changed file:

- bin/djm


Changes:

=====================================
bin/djm
=====================================
@@ -548,19 +548,19 @@ djm_do() {
 				run_xterm2wait4node_comeback $NODE
 				;;
 			powercycle)	case $SHORTNODE in
-						jenkins)	./bin/powercycle_x86_nodes.py jenkins
+						jenkins)	`dirname $0`/powercycle_x86_nodes.py jenkins
 								;;
 						ionos*)		node=$(echo $NODE | cut -b 6- | cut -d '-' -f1)
-								./bin/powercycle_x86_nodes.py $node
+								`dirname $0`/powercycle_x86_nodes.py $node
 								;;
 						virt*-armhf-rb) echo "Sorry, I do not yet know how to handle $NODE, skipping."
 								echo "But the steps are documented in README.infrastructure."
 								echo "One can powercycle mst0X however...."
 								exit 1
 								;;
-						*-armhf-rb)	./bin/powercycle_armhf_nodes.sh $NODE
+						*-armhf-rb)	`dirname $0`/powercycle_armhf_nodes.sh $NODE
 								;;
-						codethink*)	./bin/powercycle_arm64_nodes.sh $(echo ${SHORTNODE:9} | cut -d '-' -f1)
+						codethink*)	`dirname $0`/powercycle_arm64_nodes.sh $(echo ${SHORTNODE:9} | cut -d '-' -f1)
 								;;
 						osuosl*)	echo "We cannot powercycle nodes at OSUOSL on our own. Please contact #osuosl on libera.chat or send email to support at osuosl.org"
 								exit 1



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

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


More information about the Qa-jenkins-scm mailing list