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)
Please sign in to leave a comment.
Hi Alexey,
Please open finished build and go to Parameters tab. What is the value of vcsroot.branch parameter on this page?
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.