我可以从TFS中触发CI构建中排除文件吗?

时间:2021-01-08 15:01:15

I have a assembly version file (SolutionAssemblyVersion.cs) which I keep at the root of my trunk in TFS. I update this file and check it in during the build. When I use the CI build in TFS it basically triggers another build as a result of that check in. Is there any way to exclude certain users from triggering a build?

我有一个程序集版本文件(SolutionAssemblyVersion.cs),它保存在TFS中我的主干的根目录下。我更新此文件并在构建期间检入。当我在TFS中使用CI构建时,它基本上会触发另一个构建作为检查的结果。有没有办法排除某些用户触发构建?

I've seen Martin Woodward's TFS Top Tip #16 - Limit What you Build post but I'm hoping to not have to create a folder just for it.

我见过Martin Woodward的TFS Top Tip#16 - 限制你构建的帖子,但我希望不必为它创建一个文件夹。

2 个解决方案

#1


I figured it out - add:

我想通了 - 补充:

***NO_CI*** (3 stars)

*** NO_CI ***(3星)

to the front of your check-in comment. Buck Hodges blogged about it.

在你的登记评论的前面。 Buck Hodges在博客中写到了这一点。

#2


If you don't want to hard code the string there is an MSBuild variable called $(NoCICheckInComment).

如果您不想对字符串进行硬编码,则会有一个名为$(NoCICheckInComment)的MSBuild变量。

#1


I figured it out - add:

我想通了 - 补充:

***NO_CI*** (3 stars)

*** NO_CI ***(3星)

to the front of your check-in comment. Buck Hodges blogged about it.

在你的登记评论的前面。 Buck Hodges在博客中写到了这一点。

#2


If you don't want to hard code the string there is an MSBuild variable called $(NoCICheckInComment).

如果您不想对字符串进行硬编码,则会有一个名为$(NoCICheckInComment)的MSBuild变量。