我们将共享的Windows驱动器从filesvrA更改为filesvrB。
但是,现在我们的自动构build过程失败了,因为尝试将文件从共享Windows目录获取到本地Solaris构build框时,FTP操作失败。 它在Linux上运行良好,但在Solaris上运行得不错。
当我说失败,它不会抛出任何错误消息,它只是说
0 files retrieved.
FTP可以在Filezilla或Unix ftp命令下正常工作:
dv87adm@cmap02:/evaluate/xxx/xxxx$ ftp filesvrB Connected to filesvrB.xxxxx.com. 220 Microsoft FTP Service Name (filesvrB:jayv): anonymous 331 Anonymous access allowed, send identity (e-mail name) as password. Password: 230 User logged in. Remote system type is Windows_NT. ftp> cd Evaluate/Releases/Sun/8.7/29 250 CWD command successful. ftp> dir 200 PORT command successful. 125 Data connection already open; Transfer starting. 02-28-14 04:51PM 73728 Product Release Sheet.doc 02-28-14 05:01PM 73216 Release Installation Instructions.doc 03-03-14 02:38PM 792 release.properties 226 Transfer complete. 554 bytes received in 0.00046 seconds (1179.52 Kbytes/s) ftp> get release.properties 200 PORT command successful. 150 Opening ASCII mode data connection. 226 Transfer complete. local: release.properties remote: release.properties 792 bytes received in 0.023 seconds (34.06 Kbytes/s)
但是,像下面这样的ant脚本也是一样的:
<ftp action="get" server="${rollout.library.host}" remotedir="${rollout.library.install.path}" userid="${rollout.library.userid}" password="${rollout.library.password}" verbose="yes" binary="no"> <fileset file="release.properties"/> </ftp>
我得到以下输出:
[echo] Getting evaluate.release.properties from /evaluate/Releases/Sun/8.7/29 on filesvr3 [echo] [copy] Copying 1 file to /opt/xxx/xxxx/rollout [copy] Copying /opt/evaluate/xxx/xxxx/release.properties to /opt/evaluate/xxx/xxxx/release.properties.030514-165722 [ftp] getting files [ftp] 0 files retrieved [chmod] Applied chmod to 1 file and 0 directories.
它在我们将文件服务器更改为filesvrA时起作用。
我知道我必须改变新的文件vrB一些权限,任何人都可以请指出我在正确的方向,至于我必须检查? 我必须看什么日志?