If you download all files as zip from an agent workspace folder, it doesn't contain the parent folder.
If you download all files from archived artifacts or master workspaces it does contain the parent folder.
i.e.
http://server/job/project/ws/dirA/*zip*/dirA.zip
content of dirA.zip:
./file1
./file2
./folderA/
-> does not contain parent folder dirA.
http://server/job/project/lastSuccessfulBuild/artifact/dirA/*zip*/dirA.zip
content of dirA.zip:
./dirA/file1
./dirA/file2
./fdirA/folderA/
-> does contain parent folder dirA.
Originally reported by josch, imported from: *zip* from agent workspace folder does not contain the parent directory anymore
- status: Closed
- priority: Minor
- component(s): core
- label(s): 2.263.3-fixed, regression
- resolution: Fixed
- resolved: 2021-01-19T09:40:13+00:00
- votes: 0
- watchers: 3
- imported: 2025-11-24
Raw content of original issue
If you download all files as zip from an agent workspace folder, it doesn't contain the parent folder.
If you download all files from archived artifacts or master workspaces it does contain the parent folder.
i.e.
http://server/job/project/ws/dirA/*zip*/dirA.zip
content of dirA.zip:
./file1
./file2
./folderA/
-> does not contain parent folder dirA.
http://server/job/project/lastSuccessfulBuild/artifact/dirA/*zip*/dirA.zip
content of dirA.zip:
./dirA/file1
./dirA/file2
./fdirA/folderA/
-> does contain parent folder dirA.
environment
failed with 2.190.2<br/>
failed with 2.204.5<br/>
worked with 2.138.3
If you download all files as zip from an agent workspace folder, it doesn't contain the parent folder.
If you download all files from archived artifacts or master workspaces it does contain the parent folder.
i.e.
http://server/job/project/ws/dirA/*zip*/dirA.zip
content of dirA.zip:
./file1
./file2
./folderA/
-> does not contain parent folder dirA.
http://server/job/project/lastSuccessfulBuild/artifact/dirA/*zip*/dirA.zip
content of dirA.zip:
./dirA/file1
./dirA/file2
./fdirA/folderA/
-> does contain parent folder dirA.
Originally reported by josch, imported from: *zip* from agent workspace folder does not contain the parent directory anymore
Raw content of original issue
environment