This is my first post. I've been searching the community but didn't find any solution yet. I'm surprised nobody had the same question before, which makes me think maybe I'm trying to do something very wrong.
I'm using Perforce, and the only two available options are "Server side checkout", and "not automatically". I'm happy with "not automatically" because I want the build file running in the agent to be the one who get latest revisions from Perforce.
My build file is a NAnt script which resides in Perforce as well, therefore it resides in the agent checkout directory. The problem is that if the Working Directory is clean up automatically by TeamCity - and I realized it happens many times - when a build is triggered because there has been a Perforce change, there won't be any build file in the agent to launch because the folder is empty of course.
I tried to place the build file in a diferent folder than the workout folder, and use a relative path like '..\mybuildscripts\build.xml' becaue according to the documentation TeamCity will run only a build file from a path relative to the checkout directory, but the relative path (..\mybuildscripts\build.xml) turns out into (checkoutfolder\mybuildscripts\build.xml) instead of (checkoutfolder\..\mybuildscripts\build.xml)
I understand that when checking-out files automatically, the checkout folder gets populated automatically and the build file will always exists. But what am I suppose to do when not checking-out files automatically?
I'm migrating from CruiseControl, and used a custom bootstrap plugin to do this, anyone knows the TeamCity way?
Thanks in advance guys.