如何触发 TeamCity 上特定用户和 VCS 根的构建?
我尝试按用户进行过滤,其中 domain\user
是 TFS 中显示的用户名。然而,这导致根本没有触发任何构建。
+:user=domain\user1
+:user=domain\user2
然后我尝试了这个,
+:.
+:user=domain\user1
+:user=domain\user2
这会触发构建,但是在每个用户的每次签入时,这不是我的意图。是否存在一些已知的错误(我没有发现)或者我做错了什么?我使用 VS 解决方案构建器来进行此配置。
I tried filtering by user, where domain\user
is the username as it appears in TFS. However, this resulted in no builds triggering at all.
+:user=domain\user1
+:user=domain\user2
Then I tried this
+:.
+:user=domain\user1
+:user=domain\user2
This triggers builds, but on every checkin by every user, which is not my intention. Is there some known bug (which I didn't find) or am I doing something wrong? I used VS solution builder for this configuration.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,您添加到列表顶部的规则将添加所有用户
+:.
。我能够为我的 TFS 存储库/配置添加构建触发器过滤器,就像这样我没有尝试使用 VCS 根过滤器,但我想它可以工作 如文档中指定。特别是,因为它工作得如此之快(不像其他 TeamCity 过滤器)。
如果您从 TeamCity 论坛获得答案,请交叉发布这样我们以后就不用谷歌搜索了。
First thing, the rule you added to the top of your list is going to add all users
+:.
. I was able to add a build trigger filter for my TFS repository/configuration like thisI did not try using a VCS root filter, but I imagine it works as specified in the documents. Especially, because it worked so quickly (unlike other TeamCity filters).
If you've gotten the answer from the TeamCity forums, please cross-post it so we don't have to Google for it later.