Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
要构建我的项目,我需要提取 3 个 git 存储库。
在阶段视图中,我只看到来自这 3 个 git 存储库中的 1 个的提交。
我如何告诉 Jenkins 其他 2 个 repos?
我认为,如果您使用的是 Pipeline 作业,那么@Mor Lajb 的建议可以正常工作。您基本上可以直接从管道 Groovy 脚本中指定三个 git 源。
相反,如果您使用的是多分支管道作业,那么您可能需要从项目中选择“配置”,并在“分支源”下添加您需要的尽可能多的 git 源(使用添加源按钮)。