Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

dusan.petrovic
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 7, 2020

Hi,

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
Max Binnewies
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 1, 2020

Hi Dusan,

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

Thanks,

Max

Erick Viera
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 29, 2021

so, i'm having the same issue, was this ever resolved?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events