How to Fix Tomcat's startup.sh is not working in Execute shell of Jenkins

Tomcat's Startup Script startup.sh is not working in Jenkins. To fix this issue just add the following line.




export BUILD_ID=dontKillMe
bash /var/lib/jenkins/workspace/tomcat/apache-tomcat-8.5.60/bin/shutdown.sh
sleep 10
bash /var/lib/jenkins/workspace/tomcat/apache-tomcat-8.5.60/bin/startup.sh &
sleep 1

In the above commands first I have exported something after that I have stopped and then started tomcat server

Post a Comment

0 Comments