Change JENKINS_HOME on Red Hat Linux?

后端 未结 7 942
闹比i
闹比i 2021-02-01 16:47

I used this procedure to install Jenkins:

https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+RedHat+distributions

After it was up and running I

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-01 17:28

    Here's an easy way to solve your problem. First, move the Jenkins directory from /var/lib/jenkins to /home/jenkins. Then create a symlink at /var/lib/jenkins pointing to /home/jenkins. And of course, stop the Jenkins service before doing that.

    sudo service jenkins stop
    sudo mv /var/lib/jenkins /home
    sudo ln -s /home/jenkins /var/lib/jenkins
    sudo service jenkins start
    

提交回复
热议问题