签入TFVC团队项目触发生成在Git团队项目 [英] Checkins to TFVC Team Projects trigger builds in Git Team Project

查看:262
本文介绍了签入TFVC团队项目触发生成在Git团队项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个TFS项目设置为持续集成。我的问题是,其他TFS项目的签入触发我的项目的构建,即使没有改变我的项目。

I have a TFS project set up for continuous integration. My problem is that checkins on other TFS projects are triggering builds of my project even when no change has been made to my project.

似乎与我的项目是一个Team Foundation Git存储库有关,其他项目都没有。

It seems to be related to my project being a Team Foundation Git repository, and none of the other projects are.

我在哪里可以找到触发这个版本的内容?

Where can I look to find out what's triggering this build?

编辑:为了更清楚,我的意思是我有完全独立的团队项目。所有这些都只有一个使用Team Foundation版本控制,除了使用Git。不知何故,TFVC团队项目上的签入触发了Git团队项目上的构建

To be more clear, what I mean is that I have entirely separate Team Projects. All of them but one use Team Foundation Version Control except one which uses Git. Somehow, checkins on the TFVC Team Projects trigger a build on the Git Team Project

推荐答案

在我们的示例中,

tbl_BuildDefinitionMapping 中的 ServerItem 列设置为$ \\ \\。

The ServerItem column in tbl_BuildDefinitionMapping for the appropriate build was set to "$\".

我从Microsoft获得的修复是将其更改为不存在的修补程序:

The fix I got from Microsoft was to change that to something that doesn't exist like:

$ \GIT_NOTAFOLDER\

$\GIT_NOTAFOLDER\

这解决了我的问题。

您需要在 tbl_builddefinition中查找构建定义。一旦您找到了它,请记住 DataspaceId

You need to look up the build definition in tbl_builddefinition. Once you ave found it, remember the DataspaceId.

然后打开 tbl_builddefinitionmapping ,从上面查找 DataspaceId 。您应该会看到 ServerItem $ \ 。将其更改为 $ \GIT_NOTAFOLDER\ ,即可解决此问题。

Then open tbl_builddefinitionmapping and look for the DataspaceId from above. You should see that the ServerItem is $\. Change this to $\GIT_NOTAFOLDER\ and it should resolve the issue.

这篇关于签入TFVC团队项目触发生成在Git团队项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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