1 远程传输文件失败
SSH: Connecting from host [localhost.localdomain]
SSH: Connecting with configuration [ip_server] ...
SSH: EXEC: completed after 405 ms
SSH: Disconnecting configuration [ip_server] ...
SSH: Transferred 0 file(s)
Finished: SUCCESS
一般报这种错误可以肯定的是项目打包是成功的,只是远程传输的时候出问题了。这里我开始以为是传输超时的原因,就把时间设置了一下
Timeout改为0就是没有时间限制。后来文档日志信息显示
SSH: Connecting from host [localhost.localdomain]
SSH: Connecting with configuration [ip_server] ...
SSH: Disconnecting configuration [ip_server] ...
SSH: Transferred 0 file(s)
Finished: SUCCESS
说明还是有问题,我看了远程的服务器上面也没有报错的信息,在网上找了一下,大概猜测是路径的问题,然后就往这个方向查找,最后发现确实是路径的问题。
1.将Remote Directory加上 /
2在工作空间里面查看jar包路径,因为需要进个rzkj-dzbl,我的Source files
和Remove prefix就是因为没有加这个,还有就是前面不要加 / ,在Remote directory
里面要加上 / 。
2操作权限报错
SSH: Connecting from host [localhost.localdomain]
SSH: Connecting with configuration [ip_server] ...
SSH: Disconnecting configuration [ip_server] ...
ERROR: Exception when publishing, exception message [Exec timed out or was interrupted after 120,001 ms]
Build step 'Send build artifacts over SSH' changed build result to UNSTABLE
Finished: UNSTABLE
这个原因就是因为脚本文件的权限不够,执行下面的命令改变下权限
chmod -R 777 文件名