Teamcity 不是为开发分支自动构建

Teamcity not autobuild for develop branch

我用于 C# 项目,Git 自 TFS。

当我进行更改时,Teamcity 会检测到这些更改。但仅对于开发 bran,构建不会自动触发。要知道师父对他的工作很好

你有什么想法吗?

下面是开发分支的设置

1) 我的 Teamcity 仪表板

2) 我的配置触发器

3) 我的配置 VCS

4) 我在 tfs 上的分支

这里有一个类似的线程供您参考:Select Git branch for TeamCity Build,请尝试线程中提到的解决方案:

You can try to parameterize the "Ref name" of the git VCS setup. What this means is you declare a variable of the form %variable.name% in your build, create a build parameter under the "configuration parameter:" category.

For each build target set this value and you should be able to pick the specific branch that you want to run the target for.

  1. 设置 VCS 根目录。这里的关键是 %BranchName% 参数。
  2. 创建构建模板并使用刚刚创建的 VCS 根目录。
  3. 根据模板创建新版本。