Parameter with the currently used branch name in TeamCity 7.1

I have a build configuration that tracks multiple Git branches (basically all of them, using * )

I am looking for a configuration parameter that will hold the branch name for the build.

The motive for this, is that i have a branch per product version (for example; Branch_1.0, Branch_2.0, etc).

I have a separate build configuration that copies some files to a certain network location, that should be based on the branch that was built.

What i'm after is having a build step such as:

Copy D:\Outputs\*.* %DropLocation%\%BranchUsedForBuilding%\

Is this possible? i could not achieve this.

Thanks
Lior

Please sign in to leave a comment.