Use maven property for Build number format

In my agregator pom.xml we have a property set the application version number and the build number.

How I can use it in for set the build number format. I try maven.project.variablaname, just variablename, but none work.

Some body have a idea?

1 comment
Comment actions Permalink


Unfortunately, by default TeamCity only allows to refer Provided Parameters (you can find the list on "Maven" tab of your build configuration) in build number pattern.

But you can always set build number from your build script by printing a service message to STDOUT. See this doc for more details


Please sign in to leave a comment.