Jenkins启动Tomcat,当job运行完成,tomcat退出

解决方法:

bash脚本: BUILD_ID=dontKillMe

pipeline使用: env.JENKINS_NODE_COOKIE="dontKillMe"

原因可以参考:https://www.cnblogs.com/qianjinyan/p/11239984.html

原文地址:https://www.cnblogs.com/estherSH/p/14275658.html