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

Easy to way to copy workspace files

    Details

    • Type: New Feature
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: pipeline
    • Labels:
      None
    • Similar Issues:

      Description

      Frequently it is necessary to copy all or part of a workspace from one node to another within a flow. Doing so using archive and unarchive is possible, but clumsy, and leaves unwanted archives in the build record.

        Attachments

          Issue Links

            Activity

            jglick Jesse Glick created issue -
            Hide
            jglick Jesse Glick added a comment -

            An alternative/complement to JENKINS-26100.

            Show
            jglick Jesse Glick added a comment - An alternative/complement to JENKINS-26100 .
            jglick Jesse Glick made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-26100 [ JENKINS-26100 ]
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-26134 [ JENKINS-26134 ]
            Hide
            jglick Jesse Glick added a comment -

            Unclear how to do this well, since ArtifactManager does not support deleting a single artifact at the end of a build, so it would be necessary to bypass it and use raw copies to some location in the build directory.

            Show
            jglick Jesse Glick added a comment - Unclear how to do this well, since ArtifactManager does not support deleting a single artifact at the end of a build, so it would be necessary to bypass it and use raw copies to some location in the build directory.
            Hide
            cobexer Ing. Christoph Obexer added a comment -

            The usecase I have that I would like to use this for is copying the Testsuite around:

            I don't want it to be archived with the build on the Jenkins master as that would use up a lot of space over time.
            I don't want to use a git step on all the CI slaves (about 30 currently) because I am not allowed to have the source of the application on those machines.

            I want to archive a set of files, give the set a name and be able to unarchive the set of files on any node within the workflow. After the flow execution the archives should be gone. (Maybe a different name for that step would be good like tar or pack or something similar)

            (reposting due to being affected by the data loss; not sure if the comment above is a response to this)

            Show
            cobexer Ing. Christoph Obexer added a comment - The usecase I have that I would like to use this for is copying the Testsuite around: I don't want it to be archived with the build on the Jenkins master as that would use up a lot of space over time. I don't want to use a git step on all the CI slaves (about 30 currently) because I am not allowed to have the source of the application on those machines. I want to archive a set of files, give the set a name and be able to unarchive the set of files on any node within the workflow. After the flow execution the archives should be gone. (Maybe a different name for that step would be good like tar or pack or something similar) (reposting due to being affected by the data loss; not sure if the comment above is a response to this)
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-30024 [ JENKINS-30024 ]
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-30025 [ JENKINS-30025 ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "PR 186 (Web Link)" [ 13123 ]
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            CHANGES.md
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/stash/StashTest.java
            api/src/main/java/org/jenkinsci/plugins/workflow/flow/StashManager.java
            demo/repo/Jenkinsfile
            job/src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowRun.java
            support/src/main/java/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep.java
            support/src/main/java/org/jenkinsci/plugins/workflow/support/steps/stash/UnstashStep.java
            support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/config.jelly
            support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/help-excludes.html
            support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/help-includes.html
            support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/help-name.html
            support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/help.html
            support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/UnstashStep/config.jelly
            support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/UnstashStep/help-name.html
            support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/UnstashStep/help.html
            http://jenkins-ci.org/commit/workflow-plugin/1c4a4416ed06ec5311ffac57f26957eab831b03e
            Log:
            [FIXED JENKINS-26942] File stashing.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: CHANGES.md aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/stash/StashTest.java api/src/main/java/org/jenkinsci/plugins/workflow/flow/StashManager.java demo/repo/Jenkinsfile job/src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowRun.java support/src/main/java/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep.java support/src/main/java/org/jenkinsci/plugins/workflow/support/steps/stash/UnstashStep.java support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/config.jelly support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/help-excludes.html support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/help-includes.html support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/help-name.html support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/help.html support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/UnstashStep/config.jelly support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/UnstashStep/help-name.html support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/UnstashStep/help.html http://jenkins-ci.org/commit/workflow-plugin/1c4a4416ed06ec5311ffac57f26957eab831b03e Log: [FIXED JENKINS-26942] File stashing.
            scm_issue_link SCM/JIRA link daemon made changes -
            Status In Progress [ 3 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            CHANGES.md
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/stash/StashTest.java
            api/src/main/java/org/jenkinsci/plugins/workflow/flow/StashManager.java
            basic-steps/src/main/java/org/jenkinsci/plugins/workflow/steps/ArtifactArchiverStep.java
            basic-steps/src/main/java/org/jenkinsci/plugins/workflow/steps/ArtifactUnarchiverStep.java
            basic-steps/src/main/resources/org/jenkinsci/plugins/workflow/steps/ArtifactArchiverStep/help.html
            basic-steps/src/main/resources/org/jenkinsci/plugins/workflow/steps/ArtifactUnarchiverStep/config.jelly
            demo/repo/Jenkinsfile
            job/src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowRun.java
            support/src/main/java/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep.java
            support/src/main/java/org/jenkinsci/plugins/workflow/support/steps/stash/UnstashStep.java
            support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/config.jelly
            support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/help-excludes.html
            support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/help-includes.html
            support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/help-name.html
            support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/help.html
            support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/UnstashStep/config.jelly
            support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/UnstashStep/help-name.html
            support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/UnstashStep/help.html
            http://jenkins-ci.org/commit/workflow-plugin/3723c2148c11e58366da3423f3708e49a14cad37
            Log:
            Merge pull request #186 from jglick/stash-JENKINS-26942

            JENKINS-26942 Stash files

            Compare: https://github.com/jenkinsci/workflow-plugin/compare/bad7e47c1e0b...3723c2148c11

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: CHANGES.md aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/stash/StashTest.java api/src/main/java/org/jenkinsci/plugins/workflow/flow/StashManager.java basic-steps/src/main/java/org/jenkinsci/plugins/workflow/steps/ArtifactArchiverStep.java basic-steps/src/main/java/org/jenkinsci/plugins/workflow/steps/ArtifactUnarchiverStep.java basic-steps/src/main/resources/org/jenkinsci/plugins/workflow/steps/ArtifactArchiverStep/help.html basic-steps/src/main/resources/org/jenkinsci/plugins/workflow/steps/ArtifactUnarchiverStep/config.jelly demo/repo/Jenkinsfile job/src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowRun.java support/src/main/java/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep.java support/src/main/java/org/jenkinsci/plugins/workflow/support/steps/stash/UnstashStep.java support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/config.jelly support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/help-excludes.html support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/help-includes.html support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/help-name.html support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/help.html support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/UnstashStep/config.jelly support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/UnstashStep/help-name.html support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/UnstashStep/help.html http://jenkins-ci.org/commit/workflow-plugin/3723c2148c11e58366da3423f3708e49a14cad37 Log: Merge pull request #186 from jglick/stash- JENKINS-26942 JENKINS-26942 Stash files Compare: https://github.com/jenkinsci/workflow-plugin/compare/bad7e47c1e0b...3723c2148c11
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            src/test/java/plugins/WorkflowPluginTest.java
            http://jenkins-ci.org/commit/acceptance-test-harness/17444bde0577af7485ae2003a9d96c5c97da93bd
            Log:
            JENKINS-26942 Update acceptance test to use stashes.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/test/java/plugins/WorkflowPluginTest.java http://jenkins-ci.org/commit/acceptance-test-harness/17444bde0577af7485ae2003a9d96c5c97da93bd Log: JENKINS-26942 Update acceptance test to use stashes.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            src/test/java/plugins/WorkflowPluginTest.java
            http://jenkins-ci.org/commit/acceptance-test-harness/14b934c1c52bb7ce01df94dafc5c227280d25d14
            Log:
            Merge pull request #34 from jglick/stash-JENKINS-26942

            JENKINS-26942 Update acceptance test to use stashes

            Compare: https://github.com/jenkinsci/acceptance-test-harness/compare/aac742512f57...14b934c1c52b

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/test/java/plugins/WorkflowPluginTest.java http://jenkins-ci.org/commit/acceptance-test-harness/14b934c1c52bb7ce01df94dafc5c227280d25d14 Log: Merge pull request #34 from jglick/stash- JENKINS-26942 JENKINS-26942 Update acceptance test to use stashes Compare: https://github.com/jenkinsci/acceptance-test-harness/compare/aac742512f57...14b934c1c52b
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            api/src/main/java/org/jenkinsci/plugins/workflow/flow/StashManager.java
            http://jenkins-ci.org/commit/workflow-api-plugin/6b4822937652b5de734569c291c05ccb4f37f628
            Log:
            [FIXED JENKINS-26942] File stashing.
            Originally-Committed-As: 1c4a4416ed06ec5311ffac57f26957eab831b03e

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: api/src/main/java/org/jenkinsci/plugins/workflow/flow/StashManager.java http://jenkins-ci.org/commit/workflow-api-plugin/6b4822937652b5de734569c291c05ccb4f37f628 Log: [FIXED JENKINS-26942] File stashing. Originally-Committed-As: 1c4a4416ed06ec5311ffac57f26957eab831b03e
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            api/src/main/java/org/jenkinsci/plugins/workflow/flow/StashManager.java
            http://jenkins-ci.org/commit/workflow-api-plugin/7a854b14edef8668752f0b4c93819c667db9cd86
            Log:
            Merge pull request #186 from jglick/stash-JENKINS-26942

            JENKINS-26942 Stash files
            Originally-Committed-As: 3723c2148c11e58366da3423f3708e49a14cad37

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: api/src/main/java/org/jenkinsci/plugins/workflow/flow/StashManager.java http://jenkins-ci.org/commit/workflow-api-plugin/7a854b14edef8668752f0b4c93819c667db9cd86 Log: Merge pull request #186 from jglick/stash- JENKINS-26942 JENKINS-26942 Stash files Originally-Committed-As: 3723c2148c11e58366da3423f3708e49a14cad37
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/stash/StashTest.java
            support/src/main/java/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep.java
            support/src/main/java/org/jenkinsci/plugins/workflow/support/steps/stash/UnstashStep.java
            support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/config.jelly
            support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/help-excludes.html
            support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/help-includes.html
            support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/help-name.html
            support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/help.html
            support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/UnstashStep/config.jelly
            support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/UnstashStep/help-name.html
            support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/UnstashStep/help.html
            http://jenkins-ci.org/commit/workflow-basic-steps-plugin/5f29503ff62f5167d1f044053286c24e2f6105ae
            Log:
            [FIXED JENKINS-26942] File stashing.
            Originally-Committed-As: 1c4a4416ed06ec5311ffac57f26957eab831b03e

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/stash/StashTest.java support/src/main/java/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep.java support/src/main/java/org/jenkinsci/plugins/workflow/support/steps/stash/UnstashStep.java support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/config.jelly support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/help-excludes.html support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/help-includes.html support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/help-name.html support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/help.html support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/UnstashStep/config.jelly support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/UnstashStep/help-name.html support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/UnstashStep/help.html http://jenkins-ci.org/commit/workflow-basic-steps-plugin/5f29503ff62f5167d1f044053286c24e2f6105ae Log: [FIXED JENKINS-26942] File stashing. Originally-Committed-As: 1c4a4416ed06ec5311ffac57f26957eab831b03e
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/config.jelly
            http://jenkins-ci.org/commit/workflow-multibranch-plugin/1fe779fbdacef87eafe33312137c1e10af6d85c8
            Log:
            [FIXED JENKINS-26942] File stashing.
            Originally-Committed-As: 1c4a4416ed06ec5311ffac57f26957eab831b03e

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: support/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/stash/StashStep/config.jelly http://jenkins-ci.org/commit/workflow-multibranch-plugin/1fe779fbdacef87eafe33312137c1e10af6d85c8 Log: [FIXED JENKINS-26942] File stashing. Originally-Committed-As: 1c4a4416ed06ec5311ffac57f26957eab831b03e
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            job/src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowRun.java
            http://jenkins-ci.org/commit/workflow-job-plugin/09701425814087cb092afee005703a7db28817df
            Log:
            [FIXED JENKINS-26942] File stashing.
            Originally-Committed-As: 1c4a4416ed06ec5311ffac57f26957eab831b03e

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: job/src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowRun.java http://jenkins-ci.org/commit/workflow-job-plugin/09701425814087cb092afee005703a7db28817df Log: [FIXED JENKINS-26942] File stashing. Originally-Committed-As: 1c4a4416ed06ec5311ffac57f26957eab831b03e
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 161127 ] JNJira + In-Review [ 196649 ]
            abayer Andrew Bayer made changes -
            Component/s pipeline-general [ 21692 ]
            abayer Andrew Bayer made changes -
            Component/s workflow-plugin [ 18820 ]

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                jglick Jesse Glick
              • Votes:
                2 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: