Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-13444

Workspace Cleanup plugin seems to be following symlinks and deleting files outside its workspace

XMLWordPrintable

      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.

            lvotypkova Lucie Votypkova
            g01 Gary Yund
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: