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

Add option to recursively copy a tree, as per "scp -r".

    XMLWordPrintable

Details

    • Improvement
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • scp-plugin
    • None
    • Jenkins 1.594, Hudson SCP pulisher plugin: v1.8

    Description

      I don't see the equivalent of the "-r" option to recursively copy a directory over scp/sftp. This would be extremely useful to me, and is almost a blocker. Thanks.

      Attachments

        Issue Links

          Activity

            ramazanyich2 ramazanyich2 added a comment -

            actually you can use ant style selection for files like it is described in plugin documentation. In that case multiple files will be copied. check https://wiki.jenkins-ci.org/display/JENKINS/SCP+plugin

            ramazanyich2 ramazanyich2 added a comment - actually you can use ant style selection for files like it is described in plugin documentation. In that case multiple files will be copied. check https://wiki.jenkins-ci.org/display/JENKINS/SCP+plugin
            jmmcg1 J McG added a comment -

            Having previously read the plugin documentation multiple times, far as I could tell in the plugin documentation, using the ant-style selection did not replicate hierarchies, but flattened them. I not only want to read a tree of files in, but want that tree, with sub-directories and all, replicated to the target, as per "scp -r". Does the ant-style selection do this?

            Previous comments by: Jul 21, 2009, Dan Morrow and Aug 12, 2010, Andrei Pozolotin have gone unanswered.

            The comment in the documentation " You can use ant includes syntax, eg. folder/dist/*.jar. " does not clearly imply that directory hierarchies will be replicated, and the previous comments imply I am correct.

            jmmcg1 J McG added a comment - Having previously read the plugin documentation multiple times, far as I could tell in the plugin documentation, using the ant-style selection did not replicate hierarchies, but flattened them. I not only want to read a tree of files in, but want that tree, with sub-directories and all, replicated to the target, as per "scp -r". Does the ant-style selection do this? Previous comments by: Jul 21, 2009, Dan Morrow and Aug 12, 2010, Andrei Pozolotin have gone unanswered. The comment in the documentation " You can use ant includes syntax, eg. folder/dist/*.jar. " does not clearly imply that directory hierarchies will be replicated, and the previous comments imply I am correct.

            People

              ramazanyich2 ramazanyich2
              jmmcg1 J McG
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: