-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Platform: All, OS: Linux
In our build system, we make a symlink from the build tree to the system
configuration. When removing a project from Hudson, it all got deleted!
To reproduce:
Create a new job "Test".
$ ln -s ~/precious ~/.hudson/jobs/Test/builds/link-to-precious
$ ls ~/precious
my-data
Delete Project "Test" using the web interface.
$ ls ~/precious
My data is gone!
- is duplicated by
-
JENKINS-783 Checking out a fresh workspace deletes symlink targets
-
- Closed
-
See similar problem at
http://david.olrik.dk/articles/2006/02/01/ant-does-not-respect-symlinks
Java doesn't let us check if a directory is a symlink, nor does it support a
recursive deletion library call, so this is rather hard to do correctly.
I'm planning to try somewhere along the line of this:
http://joust.kano.net/weblog/archives/000071.html