Teamcity %build.vcs.number% showing?

 

I am using TeamCity Enterprise 10.0.4 (build 42538)

I am trying to use %build.vcs.number% to make the version appear.

What i did, is going to the specific build and filled Build number format: with %build.vcs.number%

When i am running the build, the version showing ???

What is wrong? how can i make it show the %build.vcs.number%?

0
5 comments

How many VCS Roots do you have attached to the configuration? What kind of roots are they? (git, subversion, etc)

0
Avatar
Permanently deleted user

1 VCS root(git)

0

Can you show us a screenshot of how you have it configured? Do you overwrite the "build.vcs.number" parameter at some point during the build? I just did a test with this and it works just fine.

0
Avatar
Permanently deleted user

Yes. i have just found the place where his get override though the build process and figure out what was the problem.

So, I don't understand something, 

do i suppose to overwrite this value through my build process?

or Teamcity should handle it through  Build number format: with %build.vcs.number% ?

0

Glad you found it! You can use any of the methods, but if you use them combined, teamcity will initially apply the format you create on the configuration, then it will be overwritten by the steps if you overwrite it. The initial field is supposed to be a default, and will be used on every build initially, but you can also overwrite it in case you find it necessary through the build steps.

0

Please sign in to leave a comment.