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

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

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            Hide
            teilo James Nord added a comment -

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

            Show
            teilo James Nord added a comment - relates in part to JENKINS-30024 and ability to migrate from dist-fork to workflow.
            Hide
            jglick Jesse Glick added a comment -

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

            Show
            jglick Jesse Glick added a comment - Would it suffice for JENKINS-26942 to include a syntax for directories, which internally kept them as an archive?
            Hide
            jglick 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?

            Show
            jglick 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?
            Hide
            jglick 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.

            Show
            jglick 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.
            Hide
            teilo 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.

            Show
            teilo 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.
            Hide
            jglick 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.

            Show
            jglick 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.
            Hide
            jglick Jesse Glick added a comment -

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

            Show
            jglick Jesse Glick added a comment - A good candidate for pipeline-utility-steps , if not already there.
            Show
            scof 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

              People

              • Assignee:
                Unassigned
                Reporter:
                teilo James Nord
              • Votes:
                4 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: