Select Git branch for TeamCity Build

前端 未结 2 826
悲&欢浪女
悲&欢浪女 2020-12-07 10:36

I\'m wondering how to select the branch to build against using Team City 8.1.

My VCS root (Git) is set to Default: \"master\" and Branch specifications are

2条回答
  •  青春惊慌失措
    2020-12-07 11:19

    You can 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.

提交回复
热议问题