CentOS7-运维-Jenkins改变默认Workspace[Jenkins 2.138.1]

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/weixin_42713970/article/details/86650419

By default, Jenkins stores all of its data in this directory on the file system. 
Under the Advanced section, you can choose to store build workspaces and build records elsewhere.

There are a few ways to change the Jenkins home directory:

  • Edit the JENKINS_HOME variable in your Jenkins configuration file (e.g. /etc/sysconfig/jenkins on Red Hat Linux).
  • Use your web container's admin tool to set the JENKINS_HOME environment variable.
  • Set the environment variable JENKINS_HOME before launching your web container, or before launching Jenkins directly from the WAR file.
  • Set the JENKINS_HOME Java system property when launching your web container, or when launching Jenkins directly from the WAR file.
  • Modify web.xml in jenkins.war (or its expanded image in your web container). This is not recommended.
This value cannot be changed while Jenkins is running. 
It is shown here to help you ensure that your configuration is taking effect.

可以设置JENKINS_HOME环境变量,重启后,会回到安装步骤。

猜你喜欢

转载自blog.csdn.net/weixin_42713970/article/details/86650419
今日推荐