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?
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
Source: https://habr.com/ru/post/1540676/More articles:Qt 5: const char * QString cast - c ++Type conversion error when passing model to partial - c #Typescript: what exactly is of type "{[name: string]: string}" to? - typescriptjava.lang.NoClassDefFoundError: com.google.android.gms.gcm.GoogleCloudMessaging - androidjava.lang.NoClassDefFoundError: com.google.android.gms.common.GooglePlayServicesUtil - androidLocking an import module (using Py_NewInterpreter) - pythonConnect angularjs webapp to REST API (PHP) - angularjsCurl show only content type - linuxHow can I verify that refactoring maintains a stream of code, not just behavior? - c ++Optimizing jQuery page layout changes - javascriptAll Articles