I have configured the VSTS agent on my MacBook Pro and it works perfectly when I manually run it (using ./run.sh
).
However when I configure the VSTS agent to run as a service (using ./svc.sh install
and ./svc.sh start
) and queue a new build in VSTS I receive an error (on the signing step) "ANDROID_HOME not set".
I have the following configured in my .bash_profile:
export ANDROID_HOME=/Users/$(whoami)/Library/Android/sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
The path is correct and also running echo $ANDROID_HOME
returns the expected value (in this case /Users/mvanbeusekom/Library/Android/sdk
).
Does anybody know what could be wrong?