• Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • pipeline
    • None

      Currently requires you to specify mapping: [file: file], which is awkward and redundant. Would prefer to have a single String-valued parameter with a list of things to unarchive to the same paths, like archive allows.

          [JENKINS-26134] Shorter syntax for unarchive

          Jesse Glick added a comment -

          If JENKINS-26942 were implemented, this step would be used a lot less I think.

          Jesse Glick added a comment - If JENKINS-26942 were implemented, this step would be used a lot less I think.

          Jesse Glick added a comment -

          Prefer unstashing.

          Jesse Glick added a comment - Prefer unstashing.

          Code changed in jenkins
          User: Jesse Glick
          Path:
          basic-steps/src/main/java/org/jenkinsci/plugins/workflow/steps/ArtifactUnarchiverStep.java
          basic-steps/src/main/resources/org/jenkinsci/plugins/workflow/steps/ArtifactUnarchiverStep/config.jelly
          http://jenkins-ci.org/commit/workflow-plugin/32e72ec33840aa8bd322b029972327956786565f
          Log:
          JENKINS-26134 Deprecate unarchive.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: basic-steps/src/main/java/org/jenkinsci/plugins/workflow/steps/ArtifactUnarchiverStep.java basic-steps/src/main/resources/org/jenkinsci/plugins/workflow/steps/ArtifactUnarchiverStep/config.jelly http://jenkins-ci.org/commit/workflow-plugin/32e72ec33840aa8bd322b029972327956786565f Log: JENKINS-26134 Deprecate unarchive.

          Is unarchive actually deprecated, or just 'advanced'?

          We use a single node to build and artifact a bunch of configurations of a very large project, and they are individually unarchived and tested on other nodes. We also want them to be available as artifacts, so I'd rather not have to stash and artifact them if unarchive goes away.

          David McFarland added a comment - Is unarchive actually deprecated, or just 'advanced'? We use a single node to build and artifact a bunch of configurations of a very large project, and they are individually unarchived and tested on other nodes. We also want them to be available as artifacts, so I'd rather not have to stash and artifact them if unarchive goes away.

          Code changed in jenkins
          User: Jesse Glick
          Path:
          basic-steps/src/main/java/org/jenkinsci/plugins/workflow/steps/ArtifactUnarchiverStep.java
          basic-steps/src/main/resources/org/jenkinsci/plugins/workflow/steps/ArtifactUnarchiverStep/config.jelly
          http://jenkins-ci.org/commit/workflow-basic-steps-plugin/de5ee75cb0c656eb433743a312d42bd6d488c31c
          Log:
          JENKINS-26134 Deprecate unarchive.
          Originally-Committed-As: 32e72ec33840aa8bd322b029972327956786565f

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: basic-steps/src/main/java/org/jenkinsci/plugins/workflow/steps/ArtifactUnarchiverStep.java basic-steps/src/main/resources/org/jenkinsci/plugins/workflow/steps/ArtifactUnarchiverStep/config.jelly http://jenkins-ci.org/commit/workflow-basic-steps-plugin/de5ee75cb0c656eb433743a312d42bd6d488c31c Log: JENKINS-26134 Deprecate unarchive. Originally-Committed-As: 32e72ec33840aa8bd322b029972327956786565f

          Mark Stosberg added a comment -

          corngood has a good point. 'unarchive' is useful when you do want to archive things permanently. Both stashing and archiving things seems like a pain. unstash does not replace unarchive completely, as the former deals with temporary data, while the latter deals with data you want to keep permanently.

          Mark Stosberg added a comment - corngood has a good point. 'unarchive' is useful when you do want to archive things permanently. Both stashing and archiving things seems like a pain. unstash does not replace unarchive completely, as the former deals with temporary data, while the latter deals with data you want to keep permanently.

          I'm in the same boat here (deprecated vs. advanced)... an earlier stage created some RPMs, and I archived them for posterity, but now I need them when I am running my tests. They definitely have different use cases.

          Aaron D. Marasco added a comment - I'm in the same boat here (deprecated vs. advanced)... an earlier stage created some RPMs, and I archived them for posterity, but now I need them when I am running my tests. They definitely have different use cases.

          Simon Watts added a comment -

          As pointed out, (un)stash and (un)archive satisfy different requirements – passing information intra-job and inter-job respectively.

          In my case, I need to unarchive a stats file from the last successful build to perform some analysis.  In addition, in future I will need to unarchive the output of other projects which represent dependencies.

          Simon Watts added a comment - As pointed out, (un)stash and (un)archive satisfy different requirements – passing information intra-job and inter-job respectively. In my case, I need to unarchive a stats file from the last successful build to perform some analysis.  In addition, in future I will need to unarchive the output of other projects which represent dependencies.

            jglick Jesse Glick
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: