http://*.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. |
|||||||||
|