Relocating JENKINS_HOME on Windows when installed as service

前端 未结 8 1206
野趣味
野趣味 2021-01-01 11:03

To free up space on C:, I would like to move my Jenkins data files (specifically the \\jobs directory) from the default installation directory

8条回答
  •  抹茶落季
    2021-01-01 12:07

    Another possibility is to move the entire contents of $JENKINS_HOME.

    It does not require editing configuration files, and it preserves the build history.

    1. Stop the running service: jenkins.exe stop

    2. Uninstall the service: jenkins.exe uninstall

    3. Copy C:\Jenkins\home to F:\Jenkins\home

    4. Rename C:\Jenkins to something else, keep it as backup.

    5. Go to F:\Jenkins\home

    6. Reinstall the service: jenkins.exe install

    7. Start Jenkins: jenkins.exe start

    Enjoy the new disk space!

提交回复
热议问题