[
https://issues.jenkins-ci.org/browse/JENKINS-13444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=161584#comment-161584
]
Gary Yund commented on JENKINS-13444:
-------------------------------------
I had a similar issue with the SVN plugin a while back. [JENKINS-9856]
> Workspace Cleanup plugin seems to be following symlinks and deleting files
> outside its workspace
> ------------------------------------------------------------------------------------------------
>
> Key: JENKINS-13444
> URL: https://issues.jenkins-ci.org/browse/JENKINS-13444
> Project: Jenkins
> Issue Type: Bug
> Components: ws-cleanup
> Reporter: Gary Yund
> Assignee: vjuranek
> Labels: plugin
>
> It seems like the workspace cleanup plugin is following symlinks, which
> creates weird behavior. For example, I have a job that sets up the build
> environment, and my other test running jobs reference this build environment
> directory with symlinks. When the jobs that are using the workspace cleanup
> plugin don't delete the symlinks prior to finishing the job, when the
> workspace is cleaned up, files in the symlinked directory get removed.
> I resolved the issue by having my ant clean task run after the build, which
> removes the symlinks, but every now and again if the build fails...the clean
> task doesn't run and the error resurfaces the next time the job runs when it
> cleans up and those symlinks exist.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira