问题描述
我们的jenkins CI服务器(v1.499)运行的测试会调用CI计算机上的URL.这些URL后面的应用程序会随着单元测试过程的更改而更改相同的临时文件,因此这些文件需要组可写.我已经为 apache 修复了该问题,但对于詹金斯来说却完全失败了.
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.
修改/etc/default/jenkins
以包含umask 002
命令无济于事.我正在重新启动服务后,使用gdb
进行检查.
Modifying /etc/default/jenkins
to include an umask 002
command does not help. I'm checking that with gdb
after restarting the service.
那么我该如何更改詹金斯的umask设置?
So how can I change jenkins' umask setting?
推荐答案
通过配置守护程序设置umask,只需将--umask=002
添加到/etc/init.d/jenkins中的守护程序args:
Set the umask by configuring the daemon, just add --umask=002
to the daemon args in /etc/init.d/jenkins:
DAEMON_ARGS="--name=$NAME --inherit --env=JENKINS_HOME=$JENKINS_HOME --output=$JENKINS_LOG --pidfile=$PIDFILE --umask=002"
这篇关于设置詹金斯进程的umask的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!