Git name of request request responder in teamcity


I configured git to migrate my teamcity server for the QA testing environment. If I use the teamcity branch integration integration ( http://confluence.jetbrains.com/display/TCD8/Working+with+Feature+Branches ), I can get the branch name "% teamcity.build.branch%" of this property. When using a pull request ( http://blog.jetbrains.com/teamcity/2013/02/automatically-building-pull-requests-from-github-with-teamcity/ ) this (% teamcity.build.branch%) property returns the return request number (1,2, 3, etc.). How can I get the name of the request request branch?

+4
source share
1 answer

The teamcity.build.branch parameter is a logical branch, i.e. this is part of the branch from the specification of the branch matched *.

There is another parameter teamcity.build.vcs.branch. <VCS root ID> , which contains the fully qualified name of the Git branch. This seems to be what you need.

You can read more about this in the documentation: http://confluence.jetbrains.com/display/TCD8/Predefined+Build+Parameters#PredefinedBuildParameters-BranchRelatedParameters

+5
source

Source: https://habr.com/ru/post/1540676/


All Articles