How to change Jenkins default folder on Windows?

后端 未结 7 586
谎友^
谎友^ 2020-12-13 17:27

How to change Jenkins default folder on Windows where Jenkins runs as Windows service. I want to change C:\\Users\\Coola\\.jenkins folder to d:\\Jenkins<

相关标签:
7条回答
  • 2020-12-13 18:27

    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>
    
    0 讨论(0)
提交回复
热议问题