如何在Jenkins节点上设置工作区根目录? [英] How to set the workspace root directory on Jenkins nodes?

查看:671
本文介绍了如何在Jenkins节点上设置工作区根目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

默认情况下,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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆