Keep Jenkins child process running after build completes

I am trying to figure out how to keep a process running after the Jenkins build completes.

I have a build step that is suppose to close the current node.exe process and start it again by calling "npm start". This is the contents of restart_node.bat

Taskkill /IM node.exe /F
cd C:\node
call npm start

I can see that is successfully stops and starts a new process, but as soon as the build completes.. the node.exe process gets killed. How can I leave it running after the build?

enter image description here



from Recent Questions - Stack Overflow https://ift.tt/3t1NxPj
https://ift.tt/38qYSPy

Comments

Popular posts from this blog

I get wrong characters when retreiving the message body of an email using TIdIMAP4.UIDRetrieveTextPeek2()

How to drop the all the 1's in a correlation matrix

Today Walkin 14th-Sept