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?
from Recent Questions - Stack Overflow https://ift.tt/3t1NxPj
https://ift.tt/38qYSPy
Comments
Post a Comment