Setting the umask of the jenkins process

view story

http://stackoverflow.com – 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. So how can I change jenkins' umask setting? (HowTos)