How to change home directory of Jenkins?

后端 未结 4 396
南旧
南旧 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:08

    To change the Jenkins home directory you just need to setup the "JENKINS_HOME" environment variable to point to the new location. You can also set the JENKINS_HOME as a system property or a JNDI environment entry as explained in the documentation.

    Jenkins Documentation

提交回复
热议问题