Jenkins:强制控制工作空间位置

标签 jenkins perforce

我正在尝试编写一个 Jenkins 作业以在多个平台上进行编译。为此,我需要不在默认位置 (C:\Jenkins\workspace\MY_JOB) 而是在网络位置 (\somecomputer\somewhere) 创建客户端。

我尝试取消单击“让 Jenkins 创建工作区”并自己创建工作区。然而,它失败了。我在日志中看到:

"C:\Program Files\Perforce\p4.exe" workspace -o MY_JOB-230942967

我不知道这个数字是什么,为什么 perforce 插件将它添加到那里,以及我可以对此做什么。

最佳答案

打开作业配置的源代码管理位上的“高级”设置部分,然后查找

从站的客户端名称格式

默认情况下,它是${basename}-${hash}。删除哈希部分,你就可以开始了。

关于Jenkins:强制控制工作空间位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15493514/

相关文章:

perforce - 如何在搁置它的更改列表中检查 perforce 搁架?

perforce - 如何配置 P4V 以 24 小时格式显示时间?

linux - Makefile.PL - 没有这样的文件或目录

docker - 拉 github 项目时 Jenkins 出现无效凭证错误

Jenkins : How to add custom tool to my job's build environment

linux - 用于 behat 错误的 ant 构建脚本

version-control - 微软商店中的 Perforce

git - 如何在使用 P4 进行远程提交时为本地提交设置 Git?

git - jenkins 在 checkout 前清除存储库并强制克隆 vs Clean

linux - Jenkins HTMLPublisher 插件未显示在仪表板上