VCS Roots to supply branch name (or properties) to build configuration

I'd like my builds to have an environment variable set to the name of the (git) branch that is being built so that I can build the branch name into the binary.  If VCS Roots could automatically set this that would be great.  Otherwise, if VCS Roots could have an arbitrary collection of key=value pairs that I can set that end up as environment variables in any build configuration that uses that VCS Root, then I'd be happy to go through the few VCS Roots I have and setting (by hand) properties like BRANCH_NAME=v2.3 for each VCS Root.

Please sign in to leave a comment.