Tomcat started with gitlab-ci will be kill at the end of the process

recently, I have been using gitlab for continuous integration, but I have encountered a problem when configuring the. gitlab-ci.yml file of gitlab-ci. If I start the startup.sh of tomcat with the shell command in A. gitlab-ci.yml, after the pipeline is completed, the tomcat process will be kill.

this problem is also encountered when restarting tomcat with jenkins configuration, but adding BUILD_ID=DONTKILLME to jenkins can protect tomcat from kill.

now you want to know if gitlab-ci also has a way to protect the tomcat process?


use the setsid daemon


ask the landlord whether it has been solved

Menu