Git short branch name

Hello,
Im using teamcity 8.x.x version. Im configured my teamcity for continuous deployment. Im need a feature branching deployment. I see this document "http://confluence.jetbrains.com/display/TCD8/Working+with+Feature+Branches".
Im trying this document implementing on my teamcity. I have a problem.

My deployment config use "OctoPack" (nuget). My nuget package needs build count and branch name. example: 1.0.0.356-feature-1.

Im try this versioning,
%build.number%-%teamcity.build.vcs.branch.VCS_ROOT_ID% ----> 1.0.0.356-refs/head/feature-1
this version not comparative nuget versioning. nuget not comparative "/".

I need this,
%build.number%-%teamcity.build.vcs.SHORT_BRANCH_NAME.VCS_ROOT_ID% ---> 1.0.0.356-feature-1

how i can ?

Thanks

Omer

1 comment
Comment actions Permalink

Please take a look at branch parameters description in our documentation:
http://confluence.jetbrains.com/display/TCD8/Predefined+Build+Parameters#PredefinedBuildParameters-BranchRelatedParameters

Basically you can use teamcity.build.branch parameter which represents logical branch name, see also: http://confluence.jetbrains.com/display/TCD8/Working+with+Feature+Branches#WorkingwithFeatureBranches-logicalBranchName

0

Please sign in to leave a comment.