Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting the umask of the jenkins process

Our jenkins CI server (v1.499) runs tests that call URLs on the CI machine. The applications behind those URLs change the same temporary files as the unit test processes change, so those files need to be group writable. I fixed that for apache already, but totally fail with jenkins.

Modifying /etc/default/jenkins to include an umask 002 command does not help. I'm checking that with gdb after restarting the service.

So how can I change jenkins' umask setting?

like image 358
cweiske Avatar asked Jan 25 '13 07:01

cweiske


1 Answers

I had the same problems on Ubuntu 12.04.5

It seems they have changed the standard umask from 022 to 027 for more security

https://www.mail-archive.com/[email protected]/msg30397.html

So I have switched it back in my setup by changing /etc/default/jenkins to have UMASK=002 That solved my problem, maybe you did set it wrong, or forgot to restart jenkins.

Check the umask of the running deamon

ps ax | grep jenkins | grep umask

like image 63
Jesper Grann Laursen Avatar answered Nov 11 '22 09:11

Jesper Grann Laursen