Hi,
That's my understanging too, hence the error message below:
Installing yard 0.8.7.6
There was an error while trying to write to Gemfile.lock. It is likely that you need to allow write permissions for the file at path: /opt/atlassian/bitbucketci/agent/build/Gemfile.lock
Edit for answer:
The initial commands are run as root which means that if you change the user during your pipeline run then you'll lose the ability to write file.
One way to fix that would be to run the following command at the start of your pipeline:
sudo chown -R <user>:<group> *
----------
Hi Peter,
Can you tell me what error you're seeing in the logs? As far as I know the Gemfile.lock file does not need to be updated during bundle install as it contains the list of all the dependencies you need to run your application.
Bundler will simply install those dependencies at the right version on the container.
Sten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Would you be able to share your YML configuration here? The initial commands are run as root which means that if you change the user during your pipeline run then you'll lose the ability to write file.
One way to fix that would be to run the following command at the start of your pipeline:
sudo chown -R <user>:<group> *
Where <user> and <group> are the relevant value for your configuration.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Péter Nagy does that solve your issue?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.