Jenkins build the tomcat not to start

Jenkins build after the war package copied to the tomcat, do not come Kai

添加 :export BUILD_ID=dontKillMe

/usr/local/iron/tomcat8085/bin/shutdown.sh 
rm -r -f /usr/local/iron/tomcat8085/webapps/audit*
cp -f /var/lib/jenkins/workspace/CPA-Service/Service/air-ws-jkwsk/target/audit.war /usr/local/iron/tomcat8085/webapps/
export BUILD_ID=dontKillMe
/usr/local/iron/tomcat8085/bin/startup.sh

Simple script, did not write a separate file .sh

 

 After the execution log is as follows

 

 Under tomcat, war decompression success. Note Setting tomcat owner setting, jenkinks default is jenkinks user operation. Can also be changed to root (not tried)

 

Guess you like

Origin www.cnblogs.com/vipsoft/p/11612038.html