Azure DevOps中有多个CI管道? [英] Multiple CI pipelines in Azure DevOps?

查看:66
本文介绍了Azure DevOps中有多个CI管道?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用.Net Core Web Api和React来启动一个全新项目,以构建营销工具.

We are starting a brand new project using .Net Core Web Api and React to build a marketing tool.

过去,在我分配给的其他项目中,并且已经建立了仓库,我们有一个git仓库用于后端,另一个git仓库用于前端,每个仓库都有自己的CI管道

In the past in different projects I was assigned to and the repo was already set up, we had one git repo for the back-end and another git repo for the front-end and each one of them having its own CI pipeline.

现在,对于新版本,要求将后端和前端都放在同一存储库中,但位于不同的文件夹中.因此,只是想知道我们是否仍然可以使用此结构使用两个CI管道.如果是这样,您能分享任何文档/链接如何实现吗?

Now, for the new one, the requirement is to have both back-end and front-end in the same repo but different folder. So, just wondering if we can still have two CI pipelines with this structure. If so, could you share any documentation/ link how to achieve that?

推荐答案

可以.您只需要限制对特定文件夹的触发器访问.您需要有两个构建定义,并为项目includeexclude路径定义适当的位置.

Yes you can. You just need to limit trigger access to specific folders. You need to have two build definitions and define there proper for your project include and exclude paths.

来自文档

# specific path build
trigger:
  branches:
    include:
    - master
    - releases/*
  paths:
    include:
    - docs/*
    exclude:
    - docs/README.md

这篇关于Azure DevOps中有多个CI管道?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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