Jenkins使用过程中注意事项

梦想与她 提交于 2019-12-02 21:52:52
jenkins自动部署注意事项:
1.当提示错误ERROR: Exception when publishing, exception message [Exec timed out or was interrupted after XXX ms时
需要在jenkins SSH配置中修改调用脚本的命令:改为nohup sh xx.sh 并且在transfer set 高级配置中勾选 “Exec in pty”
2.当出现报错nohup: failed to run command java: No such file or directory。而手动启动该脚本却没任何问题。 
解决办法:调用shell时,脚本中需要使用basepath=$(cd `dirname $0`; pwd)来获取绝对路径
3、其他(待补充)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!