ClearCase Symbolic Link (symlink) items in snapshot views ignored by TeamCity

Hello !

As a new TeamCity user, I'm trying to define a Build getting .Net sources from ClearCase (base version, not UCM version).
My config is: TeamCity 4.0.2 / Windows XP / ClearCase 7.0.0.1

So I'm using ClearCase symlinks (in order to share some files between projects).

Items pointed by symlinks are present in the view path folder.
But these items are not present any more in the build agent work folder, so the Build lacks some files...

Why these items disapeare during the launch of a Build, when the server gives the job to an agent ?

Thanks in advance for your help.

Regards,

Olivier.

8 comments
Comment actions Permalink

I've seen in JetBrains bug tracker that ClearCase symlink problem is a known bug, but it seems that it isn't solved yet.


As previous posts have been made a long time ago, on 17 Jan 2008 and 04 Aug 2008, is this bug will be corrected soon or should my firm changes its way it's using ClearCase product ? Is this bug already placed in roadmap ?

Best regards,

Olivier.

0
Comment actions Permalink

Olivier,

You are right, symlinks are not yet supported and this is not limited to ClearCase support, Perforce support suffers from the same issue.

We do not yet assigned the issue on a particular TeamCity release - that is why it has "Next Version Pool" version in the tracker.

Please vote for the issue: this can help us monitor how many users are affected by the problem.

For the time being you can try to mimic symlinks in TeamCity by specifying checkout rules for the VCS root or configuring several VCS roots and mapping the directory linked with symlink into appropriate place.

--
Best regards,

Yegor Yarko
Project Manager (TeamCity)
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Thanks for your response.

I'm gonna try to set a solution to solve that problem, maybe with another common VCS root.

Regards,

Olivier.

0
Comment actions Permalink

Hello,

To solve the limitation, I've created a new VCS root, attached to the Build configuration, and that allows TeamCity to get symlink targets (from another VOB). Then with VCS Checkout Rules, I've specified what items to get.

It works fine, but with the following limitation. It seems that checkout rules not support standalone files (but only directories).

I've tried also wildcards, without success, but it seems that it's a needed feature.


Is there a solution to specify only one file in checkout rules ?

Regards,

Olivier.

0
Comment actions Permalink

Olivier,

Unfortunately, checkout rules does not support single files mapping.

I am afraid that the best solution I can suggest is to create a bootstrap build script that will take the necessary file from the checked out directory and put it in place before starting the main build script.

0
Comment actions Permalink

Hello Yegor

I agree with you that a bootstrap build script isn't a nice solution, as items are needed at the agent perimeter level, it can't know where source files (from ClearCase snapshot view) are located... and agent and server can also run on several machines !

So, I've changed directory structure managed by ClearCase, to put the file alone into a new folder.
So checkout rule can apply. It works now, and looks nice (till Jetbrains bug correction will occur ;-).

Thanks for your messages.

See U,

Olivier.

0
Comment actions Permalink

Has this bug been fixed? I am having trouble finding any useful information in the bug report that you linked to, such as status of the bug and whether or not it has been fixed.

0
Comment actions Permalink

Just a bump on this topic that it seems that I'm affected by this bug as well. I'm trying to migrate a new product over to TeamCity.   I'm using dynamic views on the server side but the client does not get any of the files that are symlinks.

If I look inside my ClearCase view directory, I see this:

uxpssoldev1(bsmith): pwd
/vobs_dx/si/installshield/IMAGES
uxpssoldev1(bsmith): ls -l
total 2305
-r--r--r--   1 vobadm   rdl         8854 May 25  2007 file.ico
lrwxrwxrwx   1 jmorse   rdl           55 Oct 15  2007 setup-DXSI.bmp -> ../../plugins/com.progress.dataxtend.si/DXSI_splash.bmp
lrwxrwxrwx   1 sconners rdl           56 Feb  5  2009 setup-DXSI_ACORD.bmp -> ../../plugins/com.progress.dataxtend.si/ACORD_splash.bmp
-r--r--r--   1 vobadm   rdl       584376 Apr  7 20:06 setup-DXSI_ACORD_LAH.bmp
-r--r--r--   1 vobadm   rdl       584376 Apr  7 20:06 setup-DXSI_ACORD_PCS.bmp
lrwxrwxrwx   1 jmorse   rdl           54 Oct 15  2007 setup-DXSI_SID.bmp -> ../../plugins/com.progress.dataxtend.si/SID_splash.bmp


On the client side, I only see the setup-DXSI_ACORD_LAH.bmp & setup-DXSI_ACORD_PCS.bmp files.  The others (symlinks) are not downloaded to the workspace.

I'll put a vote for http://youtrack.jetbrains.net/issue/TW-3563?query=clearcase+symlink

0

Please sign in to leave a comment.