How to bootstrap a build with a custom checkout

Hi Guys

I'm trying to bootstrap my build but I'm lost in how to achieve this. I have my sources stored in a bzr repository so I'm using the bzr4j plugin (http://code.google.com/p/bzr4j/) as my VCS plugin. While this works the problem is that this plugin only supports checkouts on the server but not on the build agent. Because my build requires access to the VCS meta data (revision numbers etc.) I need to bootstrap my build in order to have a proper checkout. I've only found one post on this forum (http://www.jetbrains.net/devnet/message/5240683#5240683) which describes a similar problem but unfortunately there's no good explanation of how to achieve the bootstrap.

So does anybody have any suggestions on how to set this up? To make things more exciting I'm using a powershell script via the simple command runner

Thanks

Patrick

3 comments
Comment actions Permalink

Maybe you can write Ant or NAnt script which will do the bootstrap? Such script can be specified as the "build file content" parameter on the Ant/NAnt runner settings.

0
Comment actions Permalink

Hi Pavel

Yeah I got that much. The answer I was after more is some suggestions on where to store this bootstrap file. I can't put it in the same directory as my sources because the working directory is deleted each time TeamCity runs. So I'm now wondering where to put the file and (also important) how to pass it the teamcity property values. I've tried to use the simple commandline builder but I couldn't figure out how to get the teamcity properties into my commandline. Specifically <teamcity.build.checkoutdir> property. Also I had trouble finding a property which describes the location from which the VCS will pull the sources.

Sorry for not making things more clear

Regards

Patrick

0
Comment actions Permalink

If you can use NAnt there will not be such problem simply because you can provide bootstrap script right on the build runner settings page. Another way is to put your bootstrap script in some place on all of the agents and specify absolute path to it in the command line runner settings.

0

Please sign in to leave a comment.