在Azure Devops中,是否有一种方法可以从单个构建定义的多个存储库获取源? [英] In Azure Devops is there a way to Get Sources from multiple Repos for a single Build Definition?

查看:150
本文介绍了在Azure Devops中,是否有一种方法可以从单个构建定义的多个存储库获取源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在构建过程中,我试图创建2个工件。

During my build process, I am trying to create 2 artifacts.

一个工件用于管道相关的脚本和代码,另一个工件用于Release产品。

One artifact for pipeline-related scripts and code, and another for the Release product.

我正在尝试进行设置的方式是,将与管道相关的脚本和代码集中管理在一个单独的存储库中,然后在执行时将其导入到每个生产构建管道中。我已经能够从External Git导入代码,但是后来遇到了麻烦...

I am trying to set this up in a way that the pipeline-related scripts and code are centrally managed in a separate repository and then imported into each production build pipeline upon execution. I have been able to import the code from External Git, but then I hit a snag...

我遇到的麻烦是在创建时构建定义并到达获取源代码步骤,我似乎只能为构建定义选择一个源...而不能同时为一个源选择(例如)TFS Git和一个外部源。

The trouble that I'm running into is that when I am creating the Build Definition and arrive at the Get Sources step, I seem to only be able to pick a single source for the Build Definition... instead of being able to pick (for example) both TFS Git for one source and External Git for a second source.

任何人都能够找出一种可以从多个存储库中将代码引入构建过程的方法?

Has anyone been able to figure out a method to pull code into a build process from multiple repositories?

还是有人对如何完成我想做的事情有其他建议? p>

Or does anyone have another suggestion on how to accomplish what I'm trying to do?

推荐答案

截至2020年。 4月这个问题似乎已由Azure本身解决。

As of 2020. April this issue seems to have been solved by Azure itself.

从指示如何构建存储库,您可以导航至多仓库回购说明,它似乎可以详细回答您的问题。

From the page that instructs how to build a repo you can navigate to the multi-repo checkout instructions, which seems to answer your question in detail.

这篇关于在Azure Devops中,是否有一种方法可以从单个构建定义的多个存储库获取源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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