faberNovel / docker-android

docker-android provides general purpose docker images to run CI steps of Android project.
61 stars 13 forks source link

Azure DevOps: Running jenv results in mkdir "/.jenv/plugins" permissions denied error #127

Open carstenhag opened 7 months ago

carstenhag commented 7 months ago

I'll try to figure it out, I guess there need to be more instructions for DevOps runners

Logs:

##[debug]script=eval "$(jenv init -)"
jenv global 17
##[debug]workingDirectory=/__w/37/s
##[debug]check path : /__w/37/s
Generating script.
##[debug]Agent.Version=3.236.1
##[debug]agent.tempDirectory=/__w/_temp
##[debug]check path : /__w/_temp
========================== Starting Command Output ===========================
##[debug]which 'bash'
##[debug]found: '/usr/bin/bash'
##[debug]which '/usr/bin/bash'
##[debug]found: '/usr/bin/bash'
##[debug]/usr/bin/bash arg: --noprofile
##[debug]/usr/bin/bash arg: --norc
##[debug]/usr/bin/bash arg: /__w/_temp/b726b8ca-c4c8-4ad0-97cc-bb7456312617.sh
##[debug]exec tool: /usr/bin/bash
##[debug]arguments:
##[debug]   --noprofile
##[debug]   --norc
##[debug]   /__w/_temp/b726b8ca-c4c8-4ad0-97cc-bb7456312617.sh
/usr/bin/bash --noprofile --norc /__w/_temp/b726b8ca-c4c8-4ad0-97cc-bb7456312617.sh
mkdir: cannot create directory ‘/.jenv/plugins’: Permission denied
/.jenv/libexec/jenv-version-file-write: line 19: /.jenv/version: Permission denied
carstenhag commented 7 months ago

Unfortunately I can't get it working, I will try to solve it in a different way, without jenv. But I guess I won't further update this ticket.