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

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

问题描述

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

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