TeamCity 触发器配置问题

TeamCity trigger configuration issue

我对 TeamCity 触发器有疑问。 我在工作中使用的 VCS 配置:

+:refs/heads/(*)
+:refs/pull/(*)/head

表示"please inform me on changes made on all branches including master and pull requests".

我将我的工作配置为跳过 masterRELEASE_CANDIDATE 分支并仅构建功能和拉取请求分支,因此我的触发器配置如下所示:

+:*
-:master
-:RELEASE_CANDIDATE*

但是这个应该跳过 master 的工作在 sb 推送到 master 时仍然会被触发。 我在那里做错了什么吗? 我经历了 https://confluence.jetbrains.com/display/TCD8/Configuring+VCS+Triggers#ConfiguringVCSTriggers-TriggerRulesExample 但我没有发现我的配置有任何错误。 我会感谢任何建议。

我已经在 TeamCity 官方支持上发布了这个。 他们回应了。

Hi Rafal, Thank you for the report. It seems that branch filter in VCS trigger does not filter out default branch by name. I created the issue https://youtrack.jetbrains.com/issue/TW-42163, please watch/vote for it. Also did you specify the default branch?

There must be a default branch - it's the branch that build would be triggered against when you press Run button. If the branch is not specified than "refs/heads/master" is set as default branch. So please specify default branch: refs/heads/master and configure the following branch filter in trigger:

+:* -:<default> -:RELEASE* or leave trigger as is and use any of the feature branches as default. Sorry for the inconvenience.

因此,如果您想要此功能,请为它投票 :) 希望它对某人有所帮助。