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

*zip* from agent workspace folder does not contain the parent directory anymore

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • core
    • failed with 2.190.2
      failed with 2.204.5
      worked with 2.138.3
    • 2.276

    Description

      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.

       

      Attachments

        Issue Links

          Activity

            josch Johannes Schmieder created issue -
            josch Johannes Schmieder made changes -
            Field Original Value New Value
            Description If you do downlad all files as zip from a workspace folder, it doesn't contain the parnet folder.

            If you download all files from archive folder it does contain the parent folder.

            i.e.

            [http://server/job/project/ws/dirA/*zip*/dirA.zip|http://server/job/project/ws/folder/*zip*/folder.zip

            content of dirA.zip: 

            ./file1

            ./file2

            ./folderA/

            -> does not contain parent folder dirA.

             

            [http://server/job/project/lastSuccessfulBuild/artifact/dirA/*zip*/dirA.zip|http://server/job/project/ws/folder/*zip*/folder.zip

            content of dirA.zip: 

            ./dirA/file1

            ./dirA/file2

            ./fdirA/folderA/

            -> does contain parent folder dirA.

             
            If you do downlad all files as zip from a workspace folder, it doesn't contain the parnet folder.

            If you download all files from archive folder 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.

             
            josch Johannes Schmieder made changes -
            Environment 2.190.2
            2.204.5

            worked with 2.138.3
            josch Johannes Schmieder made changes -
            Environment 2.190.2
            2.204.5

            worked with 2.138.3
            2.190.2
            2.204.5
            worked with 2.138.3
            josch Johannes Schmieder made changes -
            Environment 2.190.2
            2.204.5
            worked with 2.138.3
            failed with 2.190.2
            failed with 2.204.5
            worked with 2.138.3
            danielbeck Daniel Beck made changes -
            Labels regression
            danielbeck Daniel Beck made changes -
            Summary *zip* from workspace folder does not contain the parent directory anymore *zip* from agent workspace folder does not contain the parent directory anymore
            danielbeck Daniel Beck made changes -
            Description If you do downlad all files as zip from a workspace folder, it doesn't contain the parnet folder.

            If you download all files from archive folder 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.

             
            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.

             
            danielbeck Daniel Beck made changes -
            Link This issue is related to JENKINS-64621 [ JENKINS-64621 ]
            danielbeck Daniel Beck made changes -
            Released As 2.276
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Fixed but Unreleased [ 10203 ]
            markewaite Mark Waite made changes -
            Status Fixed but Unreleased [ 10203 ] Closed [ 6 ]
            markewaite Mark Waite made changes -
            Labels regression 2.263.3-fixed regression

            People

              Unassigned Unassigned
              josch Johannes Schmieder
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: