I set up the VSTS agent on my MacBook Pro, and it works fine when I run it manually (using ./run.sh).
However, when I configure the VSTS agent to start as a service (using ./svc.sh installand ./svc.sh start) and queue a new assembly in VSTS, I get an error (at the signing stage) "ANDROID_HOME not set".
I have the following settings 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 works echo $ANDROID_HOMEreturns the expected value (in this case /Users/mvanbeusekom/Library/Android/sdk).
Does anyone know what could be wrong?
source
share