Still no luck getting my build to work Slowly TeamCity is getting on my nerves. Sigh
Anyway here's the situation:
- I have TeamCity 4.5.4 installed, with an MS SQL 2008 express database (which seems to work fine and is most likely not related to my issues)
- I've got a bzr repository which holds my source code. I have installed the bzr plugin for TeamCity and pointed it at my repository. TeamCity is detecting the changes in the repository so I'm assuming it works
- My build script is psake (powershell make) script which is stored in my repository.
- The bzr plug-in does not provide an ability to check the source out on the agent so I'm using a custom script (again a powershell script) for checking out the sources. Outside teamcity this script works, inside teamcity I just can't get it to work. The script looks like this:
$currentDir = pwd
$vcsRoot = $args
$checkoutDir = $args
$revno = $args
$script = $args
$command = $args
& bzr checkout $vcsRoot $checkoutDir --revision=revno:$revno
$fullPath = Join-Path $checkoutDir $script
- This script is called from the command line runner by setting the command executable to powershell.exe (which is in the path) and the command parameters to: -Command "d:\repository\TeamCityBootstrap.ps1'" (which is the path to the script). I've been trying to pass the VCS root dir, the checkout dir and the revision number of the powershell script but I simply can't convince TeamCity that it's not that hard (apparently it's very hard to pass any kind of useful argument over the command line).
So that's the story. Does anybody have any useful advice. I've read the powershell related posts in the tracker and on the forum but none are of help in my situation. I've also read this (http://www.jetbrains.net/devnet/thread/282651) but that didn't help either. I refuse to put Teamcity related values in my bootstrapper. That should really not be necessary.
Short of coding up my own runner / VCS plugin is there anything I should try or should I just give up and use another build system. I do really like TeamCity but if it can't checkout the source and invoke my build script then it's useless. Oh and I've tried MsBuild scripts which got really messy and still didn't work and I'm not intending to use Nant because I don't want to install yet another dependency on my system.