Jenkins使用过程中注意事项

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、其他(待补充)

猜你喜欢

转载自www.cnblogs.com/aiyumo/p/11763954.html