我可以为同一个存储库有多个构建管道吗? [英] Can I have multiple build pipelines for the same repository?

查看:43
本文介绍了我可以为同一个存储库有多个构建管道吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含两个解决方案的存储库.这两个解决方案文件都位于根目录中,基本上是这样的:

I have a repository with two solutions in it. Both solution files exist in the root directory, essentially like this:

/WebsiteOneDirectory/
/WebsiteTwoDirectory/
/.gitignore
/WebsiteOne.sln
/WebsiteTwo.sln

我是否可以构建指向该存储库的多个管道以构建不同的解决方案?当我创建我的第一个管道时,它将为存储库生成azure-pipelines.yml文件,因此,我不确定如何/如果能够使用多种管道配置(如果它是预期的固定名称).

Is it possible for me to build multiple pipelines pointed at this repository to build the different solutions? When I create my first pipeline it is generating a azure-pipelines.yml file for the repo, so I am unsure how/if I am going to be able to have multiple pipeline configurations if that is a fixed name it expects.

推荐答案

是的,您可以在触发器中使用路径过滤器

Yes, you can use path filters in your trigger

编辑构建,然后转到触发器"选项卡.在这里,您可以添加或删除分支,还可以添加路径过滤器.

Edit your build and go to the Triggers tab. Here you can add or remove branches, and also add path filters.

您可以选择显式包括或排除路径.在下图中,您可以看到我在master分支中明确排除了"docs"文件夹.

You have the option to either explicitly include or exclude paths. In the image below you can see that I'm explicitly excluding the "docs" folder from the master branch.

这篇关于我可以为同一个存储库有多个构建管道吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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