I need to be able to set a number of environment variables in order to configure an android development environment to gain access to physical android devices.
It is not sensible to set the PATH, ANDROID_HOME, and JAVA_HOME environment variables in repository or workspace variables as the installation of the SDK may have variance from runner to runner.
Is there are way I can get the runner to use the .zshrc or .bashrc or otherwise set runner specific variables?
If we do not have the capability our pipelines will be very brittle.
I have tried sourcing the .bashrc manually in my pipeline however I got an error:
source ~/.bashrc
bash: /root/.bashrc: No such file or directory
Strangely the HOME environment variable is not set for the runner.
This is on a linux-shell runner, version 2.4.0.