我编辑了/ etc / sysconfig / jenkins,并将以下内容从/ var / lib / jenkins更改为/ app / jenkins,以便移动到分配了更多存储空间的卷。
问题是重启后jenkins主目录仍显示/ var / lib / jenkins。为了使此更改生效,我需要更改什么?
## Path: Development/Jenkins
## Description: Jenkins Automation Server
## Type: string
## Default: "/app/jenkins"
## ServiceRestart: jenkins
#
# Directory where Jenkins store its configuration and working
# files (checkouts, build reports, artifacts, ...).
#
JENKINS_HOME="/app/jenkins"
答案 0 :(得分:1)
我最终能够通过使用
来实现这一目标export JENKINS_HOME /app/jenkins