Jenkins : How to change home directory of Jenkins

How to change home directory of Jenkins



Q: Why we need to change home directory of jenkins ?

Ans: To manage the disk space, we need to change jenkins home directory.


First copy folder from C:\Program Files (x86)\Jenkins to another location like E:\JenkinsHome

Stop the running service: jenkins.exe stop

Uninstall the service: jenkins.exe uninstall

Now rename C:\Program Files (x86)\Jenkins to Jenkins_Backup  to keep it as backup.

Go to E:\JenkinsHome

Reinstall the service: jenkins.exe install

Start Jenkins: jenkins.exe start

Enjoy with your disk space!


Enjoy !!!

:)

No comments:

Post a Comment