• Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • pipeline
    • None

      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.

          [JENKINS-26942] Easy to way to copy workspace files

          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)

          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)

          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/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.

          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

          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

          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.

          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.

          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

          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

          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

          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

          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

          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

          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

          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

          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

          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

          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

          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

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

              Created:
              Updated:
              Resolved: