This plugin provides keepRunning
step to keep the process (started by Jenkins) running even if the build has finished.
When we start new process use Jenkins, for example tomcat:
sh '/usr/local/apache-tomact/bin/startup.sh
When the build finish, tomcat process will also be killed, which cannot keep running in background.
keepRunning {
sh '/usr/local/apache-tomact/bin/startup.sh
}
By ues keepRunning
step, tomcat process will keep running in background.