How to prevent auto-closing of Tomcat on starting from Jenkins job?
I am trying to start Tomcat in my Jenkins job on a slave machine.
I start Jenkins slave manually by opening slave-agent.jnlp
This is what I tried in Execute Windows Batch Command:
Tomcat starts on running the build and the build is marked successful but then Tomcat auto closes after few seconds.
One Solution collect form web for “How to prevent auto-closing of Tomcat on starting from Jenkins job?”
This is Jenkins Process Tree Killer in action. This is by design. You can either disable it globally for the whole Jenkins (not recommended) by starting Jenkins with extra parameter
For Windows environment, you can use the
at command to schedule start of Tomcat (with 1 sec delay).