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

Git clean or wipeout workspace follows junction on Windows slaves

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            skrm Laurent ERNES created issue -
            skrm Laurent ERNES made changes -
            Field Original Value New Value
            Description 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. 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.
            jglick Jesse Glick made changes -
            Assignee Nicolas De Loof [ ndeloof ]
            Summary Git clean or wipeout workspace follows symlink on Windows slaves Git clean or wipeout workspace follows junction on Windows slaves
            jglick Jesse Glick made changes -
            Resolution Won't Fix [ 2 ]
            Status Open [ 1 ] Resolved [ 5 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 148101 ] JNJira + In-Review [ 192718 ]
            pjdarton pjdarton made changes -
            Link This issue duplicates JENKINS-29956 [ JENKINS-29956 ]
            markewaite Mark Waite made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

            People

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

              Dates

                Created:
                Updated:
                Resolved: