Relocating JENKINS_HOME on Windows when installed as service

前端 未结 8 1172
野趣味
野趣味 2021-01-01 11:03

To free up space on C:, I would like to move my Jenkins data files (specifically the \\jobs directory) from the default installation directory

8条回答
  •  北海茫月
    2021-01-01 11:57

    For Jenkins 2.0, it was only necessary to add a system environment variable called "JENKINS_HOME" that points to the new location. The steps I used:

    1. Stop the container hosting Jenkins (e.g. Tomcat).
    2. Add a system environment variable called "JENKINS_HOME" that points to the new location.
    3. Restart the container hosting Jenkins.

提交回复
热议问题