Status: Open (View Workflow)
Platform: All, OS: Windows XP
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
- depends on
JENKINS-5467 Please add the improvement and fix I already did. For using node properties env vars in the plugin.
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.
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.