Teamcity does not detect ClearCase Label Movements on a Folder?

Good afternoon,

I really have numerous problems with TeamCity and ClearCase, and I just noticed another strange behaviour:

I have a dynamic view on my build server with the following config spec:

element * CHECKEDOUT
element * iRMA_for_IT
element * /main/LATEST



... now what I did as the very last change is to add a file to a directory, applied the iRMA_for_IT label to it, went to teamcity, triggered a new build with this particular view as vs root, and the build failed because the file could not be found. Then I realized I forgot to apply the label to the parent folder's latest revision (the one that contains 'added element <file>' as change). Checked the view manually on the build server.. et voila, it's there, view is looking at the proper revision of the folder and has the file. I go back to TeamCity, trigger a 'check for pending changes'.. .wait til it's done.. but hrmm.. nothing. Trigger a build... build fails again because file is missing. But it isn't in the view itself? Why's there a discrepancy between the actual CC view and what TeamCity sees and uses??

-J
5 comments
Comment actions Permalink

Once again, detaching the vcs root from the teamcity project, deleting the vcs root and NOT touching/deleting etc the actual CC view.. then recreating it in teamcity with the exact same config, run the build with it again.. et voila.. works. Something seems to be screwed up by Teamcity's cache or whatnot :-/

-J

0
Comment actions Permalink

Hello,

Seems I know the cause. TC checks the changes via the "lshistory" command, but seems this command does not report applying of a label as a change, that is why TC can not detect it.

The workaround is to click "Enforce Clean Checkout" to build clean patch or make a fake change in the file you added to allow TC to detect it.

0
Comment actions Permalink

Maxim,

thanks! This is a 'bug' in TeamCity's CC handling then (manually creating a new file version somewhere and labeling it doesn't quite right), right? Should I file a bug for this?

-J

0
Comment actions Permalink

Should I file a bug for this?

Yes, please.

0

Please sign in to leave a comment.