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

expose ability to create/unpack tar.gz / zip as a workflow step

      it is sometimes usefull to create a zip (or tar.gz) of some files ina workspace to archive as a single unit.

      However to do this you need to rely n platform tools to create the file.
      Whilst on Unix/Linux this is not too hard on windows it is a PITA requiring either extra tools or powershell scripting - neither of which is portable.

      It would be nice if Jenkins/javas ability to create tar.gz/zip was exposed as a native step.

          [JENKINS-30025] expose ability to create/unpack tar.gz / zip as a workflow step

          James Nord added a comment -

          relates in part to JENKINS-30024 and ability to migrate from dist-fork to workflow.

          James Nord added a comment - relates in part to JENKINS-30024 and ability to migrate from dist-fork to workflow.

          Jesse Glick added a comment -

          Would it suffice for JENKINS-26942 to include a syntax for directories, which internally kept them as an archive?

          Jesse Glick added a comment - Would it suffice for JENKINS-26942 to include a syntax for directories, which internally kept them as an archive?

          Jesse Glick added a comment -

          Or an easier way of running Ant, which includes all sorts of tools like this available wherever you have a JVM?

          Jesse Glick added a comment - Or an easier way of running Ant, which includes all sorts of tools like this available wherever you have a JVM?

          Jesse Glick added a comment -

          Not really necessary for archiving as such, since you can already archive a whole directory, and it is available as artifacts, either individually or (using special URLs) as archives, from the build page.

          Jesse Glick added a comment - Not really necessary for archiving as such, since you can already archive a whole directory, and it is available as artifacts, either individually or (using special URLs) as archives, from the build page.

          James Nord added a comment -

          Although this is related to copying between workspaces - I feel this has functionality outside that area.

          If you could copy directories with JENKINS-26942 this would most likely make the main use case of this redundant - but I'm convinced there are some alternative use cases out there somewhere - so feel free to lower the priority.

          Running AntTasks may give lots more power - but I could see the syntax being not so nice.

          James Nord added a comment - Although this is related to copying between workspaces - I feel this has functionality outside that area. If you could copy directories with JENKINS-26942 this would most likely make the main use case of this redundant - but I'm convinced there are some alternative use cases out there somewhere - so feel free to lower the priority. Running AntTasks may give lots more power - but I could see the syntax being not so nice.

          Jesse Glick added a comment -

          The priority is already pretty low. I am working on an implementation of JENKINS-26942 in which the storage format (tar.gz) is an implementation detail, which keeps the flow syntax attractively simple, and I think covers most use cases. If we later want to add some steps to create ZIPs or the like within a workspace, we can do that, either in workflow-plugin or in any contributed plugin.

          Jesse Glick added a comment - The priority is already pretty low. I am working on an implementation of JENKINS-26942 in which the storage format ( tar.gz ) is an implementation detail, which keeps the flow syntax attractively simple, and I think covers most use cases. If we later want to add some steps to create ZIPs or the like within a workspace, we can do that, either in workflow-plugin or in any contributed plugin.

          Jesse Glick added a comment -

          A good candidate for pipeline-utility-steps, if not already there.

          Jesse Glick added a comment - A good candidate for pipeline-utility-steps , if not already there.

          Roman Sinyakov added a comment - - edited

          Roman Sinyakov added a comment - - edited Already implemented  https://jenkins.io/doc/pipeline/steps/pipeline-utility-steps/#code-unzip-code-extract-zip-file https://jenkins.io/doc/pipeline/steps/pipeline-utility-steps/#code-zip-code-create-zip-file

          Pablo added a comment -

          hi, currently pipeline-utility-steps only offer unzip... any plan to support unpacking of tar and tar.gz files?
           

          Pablo added a comment - hi, currently pipeline-utility-steps only offer unzip... any plan to support unpacking of tar and tar.gz files?  

          James Nord added a comment -

          not with this ticket. I suggest you open a new Jira if you desire this functionality

          James Nord added a comment - not with this ticket. I suggest you open a new Jira if you desire this functionality

            Unassigned Unassigned
            teilo James Nord
            Votes:
            4 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: