mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 20:30:41 +00:00
Bug 1381770 - In tooltool-download.sh, automatically setup the relengapi authentication file. r=mshal
--HG-- extra : rebase_source : 2c90085cb84737787cfdb714fc5d79a07daed34e
This commit is contained in:
parent
d66c310fb7
commit
44f53ed5e4
@ -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/"
|
||||
|
Loading…
x
Reference in New Issue
Block a user