jenkins - Change JENKINS_HOME on Red Hat Linux? -
I used this process to install Jenkins:
After that it is going on and running I have discovered the / var / lib / jenkins partition on my server is too small. I want to transfer it, but I do not want to change the user who runs it down. I'm new to Linux and I'm stumped. How can I move it to my home / public folder for example? The "Jenkins" user does not have a home folder. It's running as a daemon on startup, so I do not know if I can create a home folder for Jenkins user to configure those settings? how?
I have read this article:
But I do not understand how to use the "Export New Jenkins Home" command, And the service is restarted, but the old route still appears in Manage Jenkins Screen.
I have also read 2-3 similar questions on the StakeVerf Flow, but where do I always get a big missing piece for that file where I change the path permanently?
This is the easiest way to resolve your problem first, the Jenkins directory is set to / var / Lib / jenkins
to / home / jenkins
. Then point to / var / lib / jenkins
to create a symlink on / home / jenkins
. And obviously, stop this Jenkins service before doing so.
Pseudo service Jenkins studio Sudo MV / var / lib / jenkins / home sudo ln -s / home / jenkins / var / lib / jenkins pseudo service Jenkins start
Comments
Post a Comment