Install umask Jenkins process

Our CI jenkins server (v1.499) runs tests that invoke URLs on the CI machine. Applications from these URLs change the same temporary files as unit test processes, so these files must be writeable to groups. I fixed this for apache already but it completely fails with jenkins.

Modifying /etc/default/jenkins to include the umask 002 command does not help. I verify that using gdb after restarting the service.

So how can I change the jenkins umask setting?

+8
linux jenkins file-permissions umask
source share
3 answers

Install umask by configuring the daemon, just add --umask=002 to the daemon arguments in /etc/init.d/jenkins:

 DAEMON_ARGS="--name=$NAME --inherit --env=JENKINS_HOME=$JENKINS_HOME --output=$JENKINS_LOG --pidfile=$PIDFILE --umask=002" 
0
source share

I had the same problems on Ubuntu 12.04.5

They seem to have changed the standard umask from 022 to 027 for more security.

https://www.mail-archive.com/jenkinsci-commits@googlegroups.com/msg30397.html

So, I switched it back in settings, changing /etc/default/jenkins to UMASK=002 This solved my problem, maybe you made a mistake, or forgot to restart jenkins.

Check the umask of a working demon

ps ax | grep jenkins | grep umask

+3
source share

If these tests are performed using Ant, you can try installing umask in the ~/.antrc file that runs when Ant starts.

0
source share

All Articles