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

Git clean or wipeout workspace follows junction on Windows slaves

    • 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.

          [JENKINS-17267] Git clean or wipeout workspace follows junction on Windows slaves

          Laurent ERNES created issue -
          Laurent ERNES made changes -
          Description Original: While configuring a job with Git SCM, using either "clean after checkout" or "wipe out workspace before build" a workspace containing directory junction (on Windows slave), the symlink (junction) is followed, and delete files in the directory referenced by this symlink. This is a problem since other job are using these files... Note that it only affects Windows slaves; when run on a Linux slave, it does not follow symlinks. New: 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.
          Jesse Glick made changes -
          Assignee Original: Nicolas De Loof [ ndeloof ]
          Summary Original: Git clean or wipeout workspace follows symlink on Windows slaves New: Git clean or wipeout workspace follows junction on Windows slaves
          Jesse Glick made changes -
          Resolution New: Won't Fix [ 2 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 148101 ] New: JNJira + In-Review [ 192718 ]
          pjdarton made changes -
          Link New: This issue duplicates JENKINS-29956 [ JENKINS-29956 ]
          Mark Waite made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

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

              Created:
              Updated:
              Resolved: