Git build of specific revision

Hi,

I'm using TeamCity with the git-teamcity plugin from github, because I want git checkout on the agent, not the server. This is because I use git-describe as part of my build process to generate the version number.

The way we want to work is that once a build has passed testing, we add a tag for that revision in Git, and rebuild it. The tag causes an official version number to be inserted into the build, instead of a development one.

How do I instruct TeamCity to build a specific revision (or tag) when I launch the build? I'm (very) new to TeamCity so I am unsure how this is supposed to be done. I'm guessing adding a new system property when I run the build, but I am unsure of what to call it.

Any ideas?

Thanks,
Simon

4 comments
Comment actions Permalink

Simon,

In general means TeamCity allow you to build a specific revision using Run Custom Build dialog where you could specify certain change to include into the build.
The option to build a specific tag currently is not supported by any of the plugins.


If you need another approach, please, describe in details your needs. Perhaps it will make sense to use snapshot dependencies.

0
Comment actions Permalink

Thanks,

The 'changes to include' dialog does pretty much what I want, except there's a limited number of revisions to choose from. Is there any way to get it to show more than the last ~20 revisions? Or to enter a revision id into a textbox?

0
Comment actions Permalink

Simon,


List of changes has limit of 300 items to display. Maybe you have changed VCS roots?

You could also find required revision in Change Log tab and Run build with certain change out there.

As to run a custom build off specified VCS revision id there is a feature in our tracker:
http://youtrack.jetbrains.net/issue/TW-5610. Please watch/vote for it.

0
Comment actions Permalink

Thanks! TeamCity is a new install, so that's probably why the list is so short. I thought it would look back through previous revisions. This is no problem, I can do what I want from this.

0

Please sign in to leave a comment.