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

SCP upload flattens subdirectories

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • scp-plugin
    • None
    • Platform: All, OS: Windows XP

    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

            dlindner dlindner created issue -

            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.

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

            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.
            mdonohue mdonohue made changes -
            Field Original Value New Value
            Component/s scp [ 15576 ]
            Component/s other [ 15490 ]
            mdonohue mdonohue made changes -
            Description If the scp plugin (which has no subcomponent, btw) 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?
            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?
            ramazanyich2 ramazanyich2 made changes -
            Link This issue depends on JENKINS-5467 [ JENKINS-5467 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 132038 ] JNJira + In-Review [ 173860 ]

            People

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

              Dates

                Created:
                Updated: