Accessing build counter (not build number) property

Hi, everybody!

I'm using TeamCity 4.5 and ANT for building my project.
I'm trying to pass build counter value to a build script but I can not do it.

I understand that I can use "{0}" pattern for build.nubmer, but I don't want to do so.

My vision is following:
build-number displays:
424-r125165

Where 424 - build.counter and 125165 is SVN revision and it is easy to detect which SVN revision is used to create a correspondent build.

Any ideas of how to get build.counter?
Thank you!

--
Kind regards,
Ignat Alexeyenko.

2 comments

Hello Ignat,

This is currently not possible. Here is an issue to address this: http://youtrack.jetbrains.net/issue/TW-11152 Please watch/vote for it.
You could probably try to use Autoincrementer plugin to have access to build number property.

Kind regards,
Marina

0

Marina,

Looks like problem can be resolved for me: will try to upgrade TeamCity to version 5.0 and use correspondent plugin.

Thank you for your help!

--
Kind regards,
Ignat Alexeyenko.

0

Please sign in to leave a comment.