Change JENKINS_HOME on Red Hat Linux?

后端 未结 7 944
闹比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:18

    Richard Chen's location is where I found the jenkins file on my CentOS 6.6 system.

    1. sudo service jenkins stop
    2. mv /var/lib/jenkins /home/mylocation/
    3. (made sure the new location had correct ownership and group-- Jenkins)
    4. modified the content of the file /etc/sysconfig/jenkins as follows:

      JENKINS_HOME="/home/mylocation"

    5. sudo service jenkins start

提交回复
热议问题