How to move Jenkns to another drive on Windows?
- Move entire Jenkins directory (typically located in C:\Program Files (x86)\Jenkins) to desired one (e.g. D:\Jenkins) - it can take some time
- Turn off Jenkins
- Open cmd where it is installed (C:\Program Files (x86)\Jenkins) and run
jenkins.exe stop
- Open Services in Windows (Win key and type "Services") and find Jenkins service, right-click and click Stop
- Open cmd where it is installed (C:\Program Files (x86)\Jenkins) and run
- Update environment variables
- Search in Windows for 'environment variables'
- Look for
JENKINS_HOME
in system variables and edit it - Change the value (in our case
D:\Jenkins
)
- Change service "Path to executable"