Run a background process permanently on a node through a script on Jenkins and let Jenkins build successfully
14,276
The exact details depend on your operating system (which you did not tell), but the Jenkins wiki has a page about this: https://wiki.jenkins-ci.org/display/JENKINS/Spawning+processes+from+build
Related videos on Youtube
Author by
LifeStartsAtHelloWorld
Updated on September 17, 2022Comments
-
LifeStartsAtHelloWorld over 1 year
I am running a background process through a script , this script is invoked when Jenkin starts building. However, the jenkins build gets stuck and on looking at the console it seems it is running the process and waits for it to complete.
This process will never complete, consider this as a server listening to its client.Every build I trigger kills the server process and restarts the process, so I am perfectly handling that scenario.
Is there any way , I can build jenkins successfully?
-
wired00 almost 8 yearsThis seems near impossible to do with Jenkins running on windows does anyone have a solution? I've now spent an entire day on this, it just shows how utterly incapable windows is as a real server
-
JJCV about 5 years@wired00 Maybe a little bit late but check nssm. Great for creating, starting and stoping services in windows