[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] master_wrapper: fixup the NODE_NAME value in case it's not a FQDN.
Mattia Rizzolo
gitlab at salsa.debian.org
Tue Jan 8 19:47:30 GMT 2019
Mattia Rizzolo pushed to branch master at Debian QA / jenkins.debian.net
Commits:
e03630ea by Mattia Rizzolo at 2019-01-08T19:44:40Z
master_wrapper: fixup the NODE_NAME value in case it's not a FQDN.
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
- - - - -
1 changed file:
- bin/jenkins_master_wrapper.sh
Changes:
=====================================
bin/jenkins_master_wrapper.sh
=====================================
@@ -19,6 +19,14 @@ fi
# define Debian build nodes in use
. /srv/jenkins/bin/jenkins_node_definitions.sh
PORT=0
+
+if [ "${NODE_NAME%.*}" = "$NODE_NAME" ]; then
+ # The NODE_NAME variable does not contain a dot, so it is not a FQDN.
+ # Fixup the value, hoping to get it right.
+ # XXX really this should not happen, how this came to be is unknown.
+ export NODE_NAME="${NODE_NAME}.debian.net"
+fi
+
get_node_ssh_port $NODE_NAME
# don't try to fetch artifacts by default
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/e03630ea7030e72a95ea3985cc078ad521cdd7d0
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/e03630ea7030e72a95ea3985cc078ad521cdd7d0
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/20190108/b3f86d93/attachment.html>
More information about the Qa-jenkins-scm
mailing list