A month ago, Robert blogged about changing the Jenkins CI home directory on Ubuntu.
Only thing I did not like was setting the path directly in the DAEMON_ARGS and excluding the $JENKINS_HOME variable.
It may not be a problem, but just in case, wouldn’t it be better if we just defined the $JENKINS_HOME to point to the new home directory? That way, any part of the Jenkins that relies on the $JENKINS_HOME will know where to look.
Instead of editing /etc/init.d/jenkins, and modifying it like Robert suggests to
|
|
I would suggest editing the /etc/default/jenkins
|
|
And changing the $JENKINS_HOME variable (around line 23) to
|
|
Then restart the Jenkins with usual
|
|