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
Community Members
Community Events
Community Groups

Wrong file permissions when bamboo job checkout


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:


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



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






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/ for the following line to change the permission:

# Set UMASK unless it has been overridden
if [ -z "$UMASK" ]; then
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.


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)



Suggest an answer

Log in or Sign up to answer

Atlassian Community Events