How to change home directory of Jenkins?

后端 未结 4 400
南旧
南旧 2021-02-02 10:59

Simple question: How to change the jenkins home directory location? By default it points to /var/lib/jenkins whereas I want it to point to /home/jenkins

4条回答
  •  春和景丽
    2021-02-02 11:00

    I tried setting the PATH thing but it doesn't seem to work as it probably has to be under Jenkins user which does not have a real unix user account. I found the variable also accessible in /etc/sysconfig/jenkins which did the trick when I restarted Jenkins.

提交回复
热议问题