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

Wrong file permissions when bamboo job checkout

avner_xvtec February 6, 2019

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
Atlassian Team members are employees working across the company in a wide variety of roles.
February 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.

avner_xvtec February 13, 2019

Thanks!

0 votes
jredmond
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 6, 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.

avner_xvtec February 7, 2019

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
AUG Leaders

Atlassian Community Events