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

Git clean or wipeout workspace follows junction on Windows slaves

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • core, git-plugin
    • None

      A job is configured with Git SCM, and either "clean after checkout" or "wipe out workspace before build" option is enabled.
      If the workspace contains a 'directory junction' (Windows slave) then, the "clean"/"wipeout" will follow the symlink (junction), and will delete files in the directory referenced by this symlink, and not just the symlink.
      This is a problem since other jobs are using these files...
      NOTE: it only affects Windows slaves; when a similar job is run on a Linux slave, it does not follow symlinks.

            Unassigned Unassigned
            skrm Laurent ERNES
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: