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<
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.