Getting the value of environment variables in Android UI test

#1

Sorry, really stupid question here: building and testing an Android app, want to get environment variable values from bitrise in the test runs, how do I that? Variables are set; at the top of the workflow I printenv the environment variables and can see their values, farther down in the work flow I run the UI tests, I’ve tried System.getenv() at runtime and System.getenv() in the build.gradle files, and it says the environment variables are not set. I can read in the PATH variable, though.
What am I doing wrong?

0 Likes