Restarting Tomcat after a successful deployment with Jenkins
问题 How can I have Jenkins restart a Tomcat instance after a successful deployment? I already tried using a batch script, but the Tomcat instance is killed when the build is finished. 回答1: Your answer lies in Jenkins ProcessTreeKiller. A more detailed explanation here. It's a design decision to kill any processes that are spawned by the build to maintain a clean environment. Unfortunately that means you can't leave a process (such as Tomcat) running after the build. You can disable this