[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] powercycle x86: add some help text
Holger Levsen
gitlab at salsa.debian.org
Thu Dec 12 23:14:01 GMT 2019
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
23442fc2 by Holger Levsen at 2019-12-12T23:13:51Z
powercycle x86: add some help text
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- bin/powercycle_x86_nodes.py
Changes:
=====================================
bin/powercycle_x86_nodes.py
=====================================
@@ -3,6 +3,15 @@
# Copyright 2019 Holger Levsen <holger at layer-acht.org>
# released under the GPLv2
+#
+# This script helps powercycling x86 nodes at profitbricks/ionos.
+#
+# It needs an account and expects the environment variables
+# IONOS_USERNAME and IONOS_PASSWORD to be set accordingly.
+#
+# Then it expects node numbers or 'jenkins' as params.
+#
+
import os
import sys
import json
@@ -18,7 +27,6 @@ log.addHandler(_ch)
log.setLevel(logging.INFO)
# log.setLevel(logging.DEBUG)
-# expects node numbers or 'jenkins' as params...
nodes = []
for argument in sys.argv[1:]:
try:
@@ -29,6 +37,12 @@ for argument in sys.argv[1:]:
nodes.append(argument)
else:
log.error("Unrecognized node: %s", argument)
+ print("This script helps powercycling x86 nodes at profitbricks/IONOS.")
+
+ print()
+ print("It needs an account and expects the environment variables IONOS_USERNAME and IONOS_PASSWORD to be set accordingly.")
+ print()
+ print("Then it expects node numbers or 'jenkins' as params.")
sys.exit(1)
else:
name = "build" + str(node)
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/23442fc23aef1da3ba7029ebb310a9f9fb2bbb7d
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/23442fc23aef1da3ba7029ebb310a9f9fb2bbb7d
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/20191212/3b990103/attachment-0001.html>
More information about the Qa-jenkins-scm
mailing list