如何在Jenkins从站上设置工作区根目录? [英] How to set the workspace root directory on Jenkins slaves?
问题描述
默认情况下,Jenkins从属服务器上的作业将存储在[Remote FS root]\workspace\
中.
当前,[Remote FS root]
设置为D:\
,所以我的工作在D:\workspace\
中.由于在Windows上限制为255个字符,我需要将作业目录直接放置在驱动器的根目录下. /p>
如何将工作区根目录设置为D:\
?
在启动Jenkins主节点时,我们必须指定以下参数:
-Dhudson.model.Slave.workspaceRoot=D:/
为此,请在$JENKINS_HOME
中找到jenkins.xml
配置文件,并完成<arguments></arguments>
部分.
By default, jobs on a Jenkins slave 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屋!