【发布时间】:2018-01-30 07:34:05
【问题描述】:
我正在尝试配置“通过 FTP 插件发布”,以便从 Jenkins (v2.7.4) 将文件上传到 FTP 站点(启用 SSL)。
在 FTP 主机配置中启用了复选框“Use FTP over TLS”(在 Manage Jenkins > Configure system 下)并添加了“Trusted Certificate”。
“测试配置”成功,但文件上传失败并出现错误:“534 Policy requires SSL”
在控制台的详细输出下方查找:
[EnvInject] - Loading node environment variables.
Building in workspace /var/lib/jenkins/jenkins_home/workspace/TEST_FTP
[TEST_FTP] $ /bin/sh -xe /opt/tomcat/temp/hudson6047550741121880978.sh
+ touch test.txt
FTP: Connecting from host [localhost]
FTP: Connecting with configuration [site1] ...
220 Welcome to XXXXXXXXXXXXXX FTP Services
AUTH TLS
234 AUTH command ok. Expecting TLS Negotiation.
FTP: Logging in, command printing disabled
FTP: Logged in, command printing enabled
CWD /site1/upload
250 CWD command successful.
TYPE I
200 Type set to I.
CWD /site1/upload
250 CWD command successful.
PASV
227 Entering Passive Mode (XX,XX,XX,XX,XX,XX).
STOR test.txt
534 Policy requires SSL.
FTP: Disconnecting configuration [site1] ...
ERROR: Exception when publishing, exception message [Could not write file. Server message: [534 Policy requires SSL.
]]
Build step 'Send build artifacts over FTP' changed build result to UNSTABLE
[BFA] Scanning build for known causes...
[BFA] No failure causes found
[BFA] Done. 0s
Finished: UNSTABLE
这个插件是否需要任何额外的配置才能工作?在 wiki 页面中找不到任何具体说明:https://plugins.jenkins.io/publish-over-ftp
【问题讨论】:
标签: ssl jenkins ftp jenkins-plugins ftp-client