jenkins使用ssh remote插件执行shell后无法退出的问题处理

现象:通过jenkins发布代码后,执行远程命令,一直卡在执行远程命令那里打转,无法退出 脚本 #!/bin/bash # 根据参数,执行进程的启动 停止 重启等 #source /etc/profile # 非apache用户运行脚本,则退出 if [ `whoami` != "apache" ]
posted @ 2021-08-13 11:13  reblue520  阅读(719)  评论(0编辑  收藏  举报