Shell 从Jenkins开始WebLogic

Shell 从Jenkins开始WebLogic,shell,jenkins,weblogic,nohup,Shell,Jenkins,Weblogic,Nohup,我想在Jenkins停止并启动WebLogic。如果我从Jenkins中的shell脚本开始: ./startWebLogic.sh . ./setWLSEnv.sh nohup ./startWebLogic.sh > /dev/null & 该过程尚未完成,但WebLogic已启动 如果我从Jenkins中带有nohup的shell脚本开始: ./startWebLogic.sh . ./setWLSEnv.sh nohup ./startWebLogic.sh

我想在Jenkins停止并启动WebLogic。如果我从Jenkins中的shell脚本开始:

./startWebLogic.sh 
. ./setWLSEnv.sh

nohup ./startWebLogic.sh > /dev/null &
该过程尚未完成,但WebLogic已启动

如果我从Jenkins中带有nohup的shell脚本开始:

./startWebLogic.sh 
. ./setWLSEnv.sh

nohup ./startWebLogic.sh > /dev/null &
该过程已完成,但WebLogic未启动

我在putty的同一台服务器上尝试了相同的脚本,结果过程完成,WebLogic启动


如何启动WebLogic并执行Jenkins提供的其他shell脚本。

这对我很有用。但是这个代码有一个问题。当您将流程置于后台时,您将看不到流程的日志。如果您的weblogic根本无法启动,您将知道只有在以后的阶段(尝试部署-在我的案例中)才能启动

希望有人能提供更好的解决方案,能够确定Weblogic在运行阶段失败的事实