How to change Jenkins default folder on Windows?

2019-03-09 07:04发布

How to change Jenkins default folder on Windows where Jenkins runs as Windows service. I want to change C:\Users\Coola\.jenkins folder to d:\Jenkins due to lack of space on C: partition (Every build takes ~10MB of free space). I don't want to reinstall Jenkins as Windows service. I just want to change folder of existing Jenkins instance. In case of lack of global solution I could focus only on relocating jobs folder.

Thanks in advance for your help.

7条回答
Luminary・发光体
2楼-- · 2019-03-09 07:57

We installed by dropping the .war into Tomcat, and could set home by just setting the environment variable JENKINS_HOME (with a service restart).

查看更多
登录 后发表回答