Skip to content
Snippets Groups Projects
Commit 9a8ff706 authored by Martyn Gigg's avatar Martyn Gigg Committed by GitHub
Browse files

Update jenkins-slave.sh

Allow custom java binary to be specified
parent e29c2176
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,9 @@ else
fi
echo "starting ..."
JAVA=`which java`
if [ -z "${JAVA}" ]; then
JAVA=`which java`
fi
JAVA_ARGS="${PROXY_ARGS} -jar ${JAR_FILE} -jnlpUrl ${SLAVE_AGENT_URL} -secret ${SECRET}"
echo "${JAVA} ${JAVA_ARGS}"
${JAVA} ${JAVA_ARGS}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment