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

Share:
14,276

Related videos on Youtube

LifeStartsAtHelloWorld
Author by

LifeStartsAtHelloWorld

Updated on September 17, 2022

Comments

  • LifeStartsAtHelloWorld
    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
    wired00 almost 8 years
    This 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
    JJCV about 5 years
    @wired00 Maybe a little bit late but check nssm. Great for creating, starting and stoping services in windows