So I was reading this teamcity blog entry: http://blog.jetbrains.com/teamcity/2012/04/teamcity-build-dependencies-2/. In the sample Build Chain: Compile, Test, Deploy it says “Deploy” is snapshot dependent on “Test” which is snapshot dependent on “Compile”. So I set up Compile, Package and Deploy. Compile is done automatically and package and Deploy are manual. Deploy has an artifact dependancy. But I have a few problems with it. In my case we have two agents.
Problem 1: if Compile is run on build agent 1 and then Package is run on agent 2 then it is not packaging the latest build.
Problem 2: There is a problem when a working directory is cleared. If Compile is run on agent 1, then the working directory is cleared and then Package is run on agent 1, then the latest code will be fetched but won't be Compiled.
What is the best way to fix these issues? The only solution to fix both issues that I've come up with is to instead use Artifact dependancies for Package and Deploy. The problem with this is that now I've doubled my artifact size. Are there any other options?