Branch properties

Hi All,

as a possible workaround for having different set of properties used by differnt branches I'm trying to utilize the Branch properties.

The idea is to use value as a parameter for Maven profile activation like this:


but I'm not sure if it supposed to be propagated to the Maven at the build time.

Is the Branch property ( can be used by Maven? If it can, how to access it?

Comment actions Permalink

I will share the solution (works good for me).

For anybody looking for the way to pass branch properties from TeamCity to Maven -  you can use 'Additional Maven command line parameters' field:

Comment actions Permalink


Thank you for sharing the results!
Seems, you should also be able to define system property (in Build Parameters settings section) with the name and value


Please sign in to leave a comment.