Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[FIXED JENKINS-16976] Option to disable nested directory creation for…
… broken FTP servers.
- Loading branch information
Showing
with
90 additions
and 8 deletions.
- +6 −0 src/main/java/jenkins/plugins/publish_over_ftp/BapFtpClient.java
- +8 −1 src/main/java/jenkins/plugins/publish_over_ftp/BapFtpHostConfiguration.java
- +3 −0 src/main/resources/jenkins/plugins/publish_over_ftp/BapFtpHostConfiguration/config.jelly
- +1 −0 src/main/resources/jenkins/plugins/publish_over_ftp/BapFtpHostConfiguration/config.properties
- +1 −0 src/main/resources/jenkins/plugins/publish_over_ftp/BapFtpHostConfiguration/config_no_BV.properties
- +35 −0 ...esources/jenkins/plugins/publish_over_ftp/BapFtpHostConfiguration/help-disableMakeNestedDirs.html
- +14 −0 src/test/java/jenkins/plugins/publish_over_ftp/BapFtpClientTest.java
- +18 −3 src/test/java/jenkins/plugins/publish_over_ftp/BapHostConfigurationTest.java
- +2 −2 src/test/java/jenkins/plugins/publish_over_ftp/jenkins/CurrentConfigurationTest.java
- +1 −1 src/test/java/jenkins/plugins/publish_over_ftp/jenkins/IntegrationTest.java
- +1 −1 src/test/java/jenkins/plugins/publish_over_ftp/jenkins/LegacyConfigurationTest.java
@@ -0,0 +1,35 @@ | ||
<!-- | ||
~ The MIT License | ||
~ | ||
~ Copyright (C) 2010-2011 by Anthony Robinson | ||
~ | ||
~ Permission is hereby granted, free of charge, to any person obtaining a copy | ||
~ of this software and associated documentation files (the "Software"), to deal | ||
~ in the Software without restriction, including without limitation the rights | ||
~ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
~ copies of the Software, and to permit persons to whom the Software is | ||
~ furnished to do so, subject to the following conditions: | ||
~ | ||
~ The above copyright notice and this permission notice shall be included in | ||
~ all copies or substantial portions of the Software. | ||
~ | ||
~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
~ THE SOFTWARE. | ||
--> | ||
|
||
<div> | ||
<p>Do not try to create nested directories with a single MKD command</p> | ||
<p>The default behaviour when creating directories is to try to create the target directory | ||
including any missing directories with a single command. If this fails, the plugin | ||
will fall back to creating each directory individually. Some FTP servers, when asked to create | ||
nested directories will respond with a success code, but will not create the directories | ||
correctly. This will result in directories being created in incorrect branches of the directory | ||
tree.</p> | ||
<p>This option will not prevent the creation of nested directories, it is just a fix for badly | ||
behaved FTP servers.</p> | ||
</div> |