How to give bitrise vagrant permission to "mv" or "cp" build artifact to a different folder?

#1

Hello,

I am using bitrise to build an application then move/copy it to $WORKSPACE folder so that another plugin on bitrise (Veracode) will grab it from there to execute next steps.

So the problem is when performing the mv or cp I got:

mv: abcd.zip $WORKSPACE/abcd.zip: Permission denied

cp: abcd.zip $WORKSPACE/abcd.zip: Permission denied

Checking detail of abcd.zip under current dir I got:

-rw-r–r-- 1 vagrant staff 845734 Aug 7 10:56 abcd.zip

Is it possible to to give bitrise vagrant permission to “mv” or “cp”?

0 Likes

#2

Hi @michaelsensibill!

Could you try the same commands with a sudo prefix? :slight_smile:

0 Likes

#3

Thanks. I found another solution to achieve it.

1 Like