How to change workspace and build record Root Directory on Jenkins?

前端 未结 8 1823
野趣味
野趣味 2020-11-29 05:35

I would like Jenkins\' data to be written to drive \"E:\" since this is the large drive on the server. Jenkins itself is installed on \"C:\".

How do I do that?

相关标签:
8条回答
  • 2020-11-29 06:33

    You can also edit the config.xml file in your JENKINS_HOME directory. Use c32hedge's response as a reference and set the workspace location to whatever you want between the tags

    0 讨论(0)
  • 2020-11-29 06:36

    By default, Jenkins stores all of its data in this directory on the file system.

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