Bug 1381770 - In tooltool-download.sh, automatically setup the relengapi authentication file. r=mshal

--HG--
extra : rebase_source : 2c90085cb84737787cfdb714fc5d79a07daed34e
This commit is contained in:
Mike Hommey 2017-07-18 16:13:26 +09:00
parent d66c310fb7
commit 44f53ed5e4

View File

@ -2,8 +2,22 @@
cd $WORKSPACE/build/src
case "`uname -s`" in
Linux)
TOOLTOOL_AUTH_FILE=/builds/relengapi.tok
;;
MINGW*)
TOOLTOOL_AUTH_FILE=c:/builds/relengapi.tok
;;
esac
TOOLTOOL_DL_FLAGS=
if [ -e "$TOOLTOOL_AUTH_FILE" ]; then
# When the worker has the relengapi token pass it down
TOOLTOOL_DL_FLAGS="${TOOLTOOL_DL_FLAGS=} --authentication-file=$TOOLTOOL_AUTH_FILE"
fi
if [ -n "$RELENGAPI_PORT" ]; then
# When the worker has the relengapi proxy setup, use it.
TOOLTOOL_DL_FLAGS="${TOOLTOOL_DL_FLAGS=} --tooltool-url=http://relengapi/tooltool/"