Current user on Linux stack is a root

OK, thanks for the explanation.

I worked this issue around with the following bash script:

useradd -m bitrise
chown -R bitrise .
chown -R bitrise ${ANDROID_HOME}
su -c './gradlew check --scan' bitrise

In this case instead of Gradle Unit test step.

Do you recommend anything better?
Changing stack to something with macOS works but step like above is noticeably slower there.

PS

I don’t think that most of Android developers work on root user normally. I guess that Linux stack is mainly used for native Android projects, isn’t it?
On the other hand it seems that most of the workflows in such projects should work no matter if executed by root or not.

1 Like