Jenkins 2.0: Change JENKINS_HOME directory

By Default When we run Jenkins 2.0, by default the JENKINS_HOME directory is setup on a path C:\Users\<USER_NAME>\.jenkins
What if you want to change it for some reason.
Reasons may be like disk space is not available on C: or proper access rights are not available.
What is the way to fix it?


Set an Environment Variable JENKINS_HOME in Command Prompt

export JENKINS_HOME=d:/jenkins_home

java -jar jenkins.war

Make Sure Jenkins 2.0 is up and running fully.

Once it is avaialble go to Jenkins Dashboard-> Click on Manage Jenkins -> lick on Configure System

Verify the Home Directory



Leave a comment

Your email address will not be published. Required fields are marked *