我们正在从 CCNet 迁移到 Jenkins,并开始使用 Mercurial。该 repo 与 Jenkins 位于不同的服务器上,因此它需要通过网络进行克隆。在我的测试hg clone
中,使用该 --uncompressed
选项来拉取网络要快得多(如文档中所述),所以我想告诉Mercurial Jenkins 插件添加它。我看到 Jenkins 正在运行这个命令来更新本地仓库:
C:\Program Files\TortoiseHg\hg.exe" --debug clone --rev default --noupdate http://remoteserver/project D:\local_repo\project
我希望它运行这个命令:
C:\Program Files\TortoiseHg\hg.exe" --debug --uncompressed clone --rev default --noupdate http://remoteserver/project D:\local_repo\project
我怀疑我可能不得不直接修改詹金的 XML 项目,因为我在詹金的 GUI 中没有看到可以做的地方,但是我找不到任何文档。