Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Set permission for directories and files in bitbucket-pipeline.yml Edited


Does someone know how to set up permissions for directories and files in bitbucket-pipeline.yml?

The problem is, when pipeline is run and push files from repo to my server it set permissions to 777 for directories and 666 for files. I want that when pipeline send files to my server, automaticaly set 755 for directories and 644 for files.

I tried with after_script:
                       - chmod -R a+rX *

but not working :/  Also tried with chmod -R 755 .  --> also not working

Any help will be welcome. Thanks in advance.

1 answer

0 votes

Hi Dusan,

can you share your bitbucket-pipelines.yaml file and the error message you are receiving?



Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,886 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you