Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,364,550
Community Members
 
Community Events
168
Community Groups

Wrong file permissions when bamboo job checkout

Hi,

I have a plan in bamboo - and the first task is to check out a repository.

(the git server is bitbucket server)

When I checkout manually, and when the bamboo does the checkout I get different file permissions:

Manual:

drwxrwxr-x 8 bamboo bamboo 4096 Feb  6 14:57 rootfs

 

Bamboo:

drwxr-x--- 8 bamboo bamboo 4096 Feb 6 15:01 rootfs

 

What is going on there? I need the bamboo to checkout with the same permissions

 

Thanks

 

Avner

 

2 answers

1 accepted

3 votes
Answer accepted
Foong Atlassian Team Feb 12, 2019

The latest Bamboo have a setting that affect the file permission.

Edit the file <bamboo-install>/bin/catalina.sh for the following line to change the permission:

# Set UMASK unless it has been overridden
if [ -z "$UMASK" ]; then
UMASK="0027"
fi
umask $UMASK

Bamboo have to be restarted after the modification.

0 votes
jredmond Atlassian Team Feb 06, 2019

Git only tracks the executable bit and the file type in a file mode - it doesn't track ownership or the read or write bits, so those parts are left to the client to determine. You'll need to ask this in the Bamboo section.

Thanks

1. There are differences also in executable attributes

2. So if so, why is the differences between the bamboo does the cloning and when I am doing it (in the same path)

 

Avner

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events