Unverified Commit e03630ea authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

master_wrapper: fixup the NODE_NAME value in case it's not a FQDN.

parent 6db573c1
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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