在TFS 2015中的git存储库中的特定文件夹中检查构建 [英] trigger a build on check in specific folder in git repository in TFS 2015

查看:98
本文介绍了在TFS 2015中的git存储库中的特定文件夹中检查构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 

我使用TFS 2015作为构建服务器和bitbucket作为源存储库。我正在尝试在特定文件夹中签入时实现构建触发器

I am using TFS 2015 as a build server and bitbucket as the source repository. I am trying to implement build trigger on check-in in a specific folder

类似:我在master中有以下目录结构

Like: I have following directory structure in master:

主人/司机

master / SRC

我想为同一个分支主机(对于驱动程序和其他产品)有两个构建配置。每个配置都应触发特定文件夹中的内置检查。

I want to have two build configuration for the same branch master ( for driver and other for Product). Each configuration should trigger a build on check in their specific folder.

仅供参考:我的TFS 2015中没有路径过滤器 

FYI: Path filters are not  available in my TFS 2015 

可以仅在分支上设置过滤器

Can set filters on branch only

推荐答案

嗨Neeraj.Gupta,

Hi Neeraj.Gupta,

感谢您在此发帖。

现在TFS中没有这样的功能。作为解决方法,您需要将文件夹转换为分支,然后您可以在构建定义中指定两个分支。之后,您需要设置如下图所示的多配置:

There is no such feature in TFS now. As a workaround, you need to convert the folder to branch, then you could specify both of the branches in the build definition. After that, you need to set up multi-configuration like the following picture:

最好的问候

Limitxiao Gao

Limitxiao Gao


这篇关于在TFS 2015中的git存储库中的特定文件夹中检查构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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