This Question is Possibly Answered

1 "correct" answer available (4 pts) 1 "helpful" answer available (2 pts)
1 Replies Last post: Feb 19, 2013 3:09 AM by Christian Goetze  
Graham Dawes Newbie 1 posts since
Feb 12, 2013
Currently Being Moderated

Feb 18, 2013 12:40 PM

Build artifacts containing symbolic links

Hi,

 

The output of our Linux build configurations contains a number symbolic links in the form (e.g. libXXX.so is a symbolic link to libXXX.so.1) . In the artifacts path setting of our build configuration we have "deploy/XXX => linux-XXX.tar.gz".  Unfortunately, the resulting tar.gz file contains copies of the files rather than the links themseleves.

 

Is there anway to tell Teamcity not to follow the links when publishing the artifacts?

 

Thanks

 

--Graham

Christian Goetze Newbie 89 posts since
Aug 3, 2010
Currently Being Moderated
Feb 19, 2013 3:09 AM in response to: Graham Dawes
Re: Build artifacts containing symbolic links

I don't know if the tar command used by TeamCity is configurable, but it appears that they went out of their way to copy in the files. I suppose the thinking was that if a symlink points to a location outside of the tree being archived, you'd miss the contents.

 

I think that you might be better off running the tar command in your build script. By default, tar will store symlinks as is.

More Like This

  • Retrieving data ...