- Stop Jenkins service
- Move
C:\Users\Coola\.jenkinsfolder tod:\Jenkins - Using regedit, change
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Jenkins\ImagePathto"d:\Jenkins\jenkins.exe" - Start service
http://stackoverflow.com/questions/12689139/how-to-change-jenkins-default-folder-on-windows
|
When you read Administering Jenkins you can read all options how to modify the JENKINS_HOME environment variable. On this website you can read how to configure you Tomcat container to override the JENKINS_HOME environment variable, they advise to create the file $CATALINA_BASE/conf/localhost/jenkins.xml, with the following content: | ||||
|
|
|
And in addition to grams answer, the most important part is creating an environment variable named JENKINS_HOME with value "D:\Jenkins". Without that, on starting Jenkins it would again create the .jenkins folder in your user home folder. | |||||||||
|
How to change Jenkins default folder on Windows?
原文:http://www.cnblogs.com/flysun0311/p/3540097.html