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

SCP upload flattens subdirectories

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: scp-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: Windows XP
    • Similar Issues:

      Description

      If the scp plugin is used with a pattern like
      documentation/**, the resulting upload fetches all files in all subdirectories,
      but flattens the hierarchy.

      This may not be desired behaviour (and in my case isn't). The directory
      structure should be preserved while uploading. This effect can't be achieved by
      workaround if the directory structure varies.

      The specific use case was to upload project documentation. Perhaps there is a
      better way?

        Attachments

          Issue Links

            Activity

            Hide
            kohsuke Kohsuke Kawaguchi added a comment -

            Ant glob syntax inherently doesn't provide any notion of base directory, so it's
            not clear how the target directory layout shall be created.

            Show
            kohsuke Kohsuke Kawaguchi added a comment - Ant glob syntax inherently doesn't provide any notion of base directory, so it's not clear how the target directory layout shall be created.
            Hide
            dlindner dlindner added a comment -

            That's true. Perhaps the ant glob syntax is too restricted for uploading whole
            directory trees and there should be an alternative way like "upload everything
            beneath directory x to the target directory, preserving structure" of specifying
            the upload sources.

            As far as i understand ant glob syntax, it tells "upload everything covered by
            this expression to the target directory" with implicit "and forget about
            directories". This is reasonable for build artifacts like JARs or ZIPs. In my
            case, its a lot of (hierarchically structured) html documents.

            Show
            dlindner dlindner added a comment - That's true. Perhaps the ant glob syntax is too restricted for uploading whole directory trees and there should be an alternative way like "upload everything beneath directory x to the target directory, preserving structure" of specifying the upload sources. As far as i understand ant glob syntax, it tells "upload everything covered by this expression to the target directory" with implicit "and forget about directories". This is reasonable for build artifacts like JARs or ZIPs. In my case, its a lot of (hierarchically structured) html documents.

              People

              • Assignee:
                Unassigned
                Reporter:
                dlindner dlindner
              • Votes:
                2 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: