Can't get vcsroot.branch in build.

Hello.

I try to set git branch to buildnumber.properties from build. But it doesn't set.

We use maven-ant plugin

 


      
vcsroot.branch     refs/heads/release


We use TeamCity Professional 9.0.4 (build 32407)

2 comments
Comment actions Permalink

Hi Alexey,

Please open finished build and go to Parameters tab. What is the value of vcsroot.branch parameter on this page?

0
Comment actions Permalink

Hi.

vcsroot.branch value in the parameters tab is set correctly.
We found out that not all parametes pass to maven throught command line parameters. We added -Dvcsroot.branch=%teamcity.build.branch% to JVM command line parameters.

0

Please sign in to leave a comment.