Skip to content

[JENKINS-61473] *zip* from agent workspace folder does not contain the parent directory anymore #11417

Description

@jenkins-infra-bot

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions