I am new to Team City. I am evaluating it to see if it fits the needs of a new software development department.
I have downloaded the latest version and installed it on a VMware image with 2008 server. It works pretty good - building, reporting, etc. together with VS2008.
The C# source I evaluate with is very simple. 1 solution with 3 projects, 1 windows forms, 1 class library and one test project. I have branched it to a patch branch, created configuration with Team City. Everything works out just fine in regards to building and testing different branches, etc (different build configuration created btw).
But: I have added some new lines of code today. I have also added additional tests. Since my main goal was to test Remote Run with the "commit only if succeed" I created some failing ones to see that everything worked out just fine.
I cannot really say that it worked out at all. I had 4 new tests, it committed my checked out files after running a test containing only 8. I think this was related to the Visual Studio test files that was under source control. At least it seemed to funciton when I checked those out.
But then... I fixed the failing tests and tried Remote run again. It failed and told me that "this and this" line is incorrect. That is weird, since the "local" VS test run reports 12 successfull tests. E.g. ready to submit.
I have tried several times without luck. Btw - it also fails when a run is executed from the central TeamCity installation, but I expected that (the code is after all not committed ).
For the fun of it I committed the files to central repository and started a build in central Team City. And it still fails!!! Well - this indicates that there is actually something wrong with my code (opening the last checkin verifies that the last changes have been included in the build). So I force a get latest on the dev machine and try again. Tests are OK, I then try a new remote run again - still fails.
Checking the build logs I noticed this:
[11:05:47]: Failed to delete file: C:\Program Files\TeamCity\buildAgent\temp\buildTmp\tmp7D21.tmp.teamcity.trx
[11:05:47]: Failed to delete file: C:\Program Files\TeamCity\buildAgent\temp\buildTmp\tmpB614.tmp.teamcity.trx
[11:05:47]: Failed to delete file: C:\Program Files\TeamCity\buildAgent\temp\buildTmp\tmpF1C6.tmp.teamcity.trx
Is it related? Is the information here some sort of cache that unables Team City to understand that the last test is actually correct again? I assume it used the VS test result files in some way. Can it be related to this? Logged in user on build machine is local admin and should have access to everything. E.g. this should not be an issue about rights...