When using %vcsroot.branch% why does all text get removed before it
I am trying to create a versioned zip file to be pushed to octopus deploy. I want the project name and build number, counter and branch in it. If I put %vcsroot.branch% anywhere but the first thing it will remove all text before it, why?
Recolight.web.%RecolightWebBuildVersionNumber%%build.number%%vcsroot.branch%
I have tried this as a parameter on the build configuration as well as within a build step.
Regards
Jon
Please sign in to leave a comment.
Hello Jon,
%vcsroot.branch% is the branch specified as Default branch in VCS root settings. If you want to get the name of the actually used branch, please use %teamcity.build,branch% parameter.
Could you please attach screenshot of the build step where this parameter is used? We will try to reproduce the issue.
Thank you!