Making some tests with VCS labeling, I have noticed something strange...
No problem labeling with TeamCity when using new labeling patterns or incremented labeling patterns.
But, when using a fixed pattern, items that have changed (so that are in a new version) sinced last Build (so since last labeling) are not labeled on their new version.
As an example, there were an existing version before changes:
Changes makes a new version: Program.cs@@\main\10
The command is made on the next version:
cleartool mklabel -version \main\10 ACA-FastIntegrationBuild E:\CCase\xxx_tcdev_view\xxx\Sandbox\AnotherConsoleApplication@@\main\10\AnotherConsoleApplication\main\5\Program.cs\main\10
What is strange is that if I use the cleartool command myself in a command prompt I get an error message whereas I can't see such error message in log files...
cleartool: Error: Version label of type "ACA-FastIntegrationBuild" already on element.
cleartool: Error: Trouble applying label to ...
A solution could be to use the "-replace" flag.
I'm using TeamCity 4.0.2 and ClearCase 126.96.36.199 on Windows.