-
Bug
-
Resolution: Won't Fix
-
Major
-
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.
- duplicates
-
JENKINS-29956 Wipe out repository & force clone ignore's Windows directory junctions
-
- Resolved
-
[JENKINS-17267] Git clean or wipeout workspace follows junction on Windows slaves
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. |
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 |
Resolution | New: Won't Fix [ 2 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Workflow | Original: JNJira [ 148101 ] | New: JNJira + In-Review [ 192718 ] |
Link |
New:
This issue duplicates |
I have the exact same issue.
The "Workspace Cleanup Plugin" works ok - not following symlinks - at version 0.16 though.