Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Component/s: publish-over-ftp-plugin
-
Labels:None
-
Environment:upload to ftp.box.com
-
Similar Issues:
Description
There are actually 2 flavors to the same bug (it should be maybe 2 bugs):
1. in non-flaten mode, if the uploaded file path is - for example - dir1/dir2/dir3/file.zip then it creates those folders in the FTP server: dir2, dir3, dir1/dir2/dir3 (where it puts the file). The creation of dir2 and dir3 is wrong!
2. in flaten and non-flaten modes, if the target folder has - for example - the format dir1/dir2/dir3, the created folders in the FTP server are: dir1, dir2 and dir3 while it should create only a structure of dir1/dir2/dir3 and puts it there
Have you read https://wiki.jenkins-ci.org/display/JENKINS/Publish+Over+... - specifically the section on Transfer sets and the examples at the bottom of the page?
1. it looks like you should set:
Source files: dir1/dir2/dir3/file.zip
Remote directory: dir1
Remove prefix: dir1/dir2/dir3/
NB: the Remote directory is relative to the directory specified in the server configuration (in manage Jenkins) so if that is not root, but is dir1, then the remote directory in the transfer set should be empty.
2. I really cannot understand what problem you are trying to describe here. Can you provide an example?