如何在Jenkins节点上设置工作区根目录? [英] How to set the workspace root directory on Jenkins nodes?
问题描述
默认情况下,Jenkins节点上的作业将存储在 [Remote FS root] \workspace\
中。
当前, [远程FS根目录]
设置为 D:\
,所以我的工作在 D:\工作区\
。由于在Windows上限制为255个字符,我需要作业目录直接位于驱动器的根目录下。 / p>
如何将工作区根目录设置为 D:\
?
在启动Jenkins主节点时,我们必须指定以下参数:
-Dhudson.model.Slave.workspaceRoot = D:/
为此,请找到 $ JENKINS_HOME
中的 jenkins.xml
配置文件,并完成< arguments>< / arguments>
部分。
By default, jobs on a Jenkins node will be stored in [Remote FS root]\workspace\
.
Currently, [Remote FS root]
is set to D:\
, so my jobs are in D:\workspace\
. Due to the 255-characters limit on Windows, I need my job directories to be directly at the root of the drive.
How to set the workspace root directory to D:\
?
We have to specify the following argument on startup of the Jenkins master node:
-Dhudson.model.Slave.workspaceRoot=D:/
To do so, find the jenkins.xml
configuration file in $JENKINS_HOME
and complete the <arguments></arguments>
section.
这篇关于如何在Jenkins节点上设置工作区根目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!