Change JENKINS_HOME on Red Hat Linux?

后端 未结 7 943
闹比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:14

    Some commands work for me as below:

    Step 1: Stop jenkin service and moving folder

    systemctl stop jenkins
    mv /var/lib/jenkins /whatever/folder
    sudo chown jenkins -R /whatever/folder
    

    Step 2: Modify jenkins home location in /etc/default/jenkins

    JENKINS_HOME=/whatever/folder/$NAME
    

    Step 3: Restart jenkins service

    systemctl start jenkins
    

提交回复
热议问题