lchl0388 发表于 2018-1-7 16:38:37

How to change Jenkins default folder on Windows?

  When you read Administering Jenkins you can read all options how to modify the JENKINS_HOME environment variable.
  On this website you can read how to configure you Tomcat container to override the JENKINS_HOME environment variable, they advise to create the file $CATALINA_BASE/conf/localhost/jenkins.xml, with the following content:
  

<Context docBase="../jenkins.war">  
<Environment name="JENKINS_HOME" type="java.lang.String" value="/data/jenkins" override="true"/>
  
</Context>
  

  
页: [1]
查看完整版本: How to change Jenkins default folder on Windows?