Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run a background process permanently on a node through a script on Jenkins and let Jenkins build successfully

Tags:

jenkins

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?

like image 573
LifeStartsAtHelloWorld Avatar asked Mar 28 '14 03:03

LifeStartsAtHelloWorld


People also ask

How do I run a script in Jenkins pipeline?

Click New Item on your Jenkins home page, enter a name for your (pipeline) job, select Pipeline, and click OK. In the Script text area of the configuration screen, enter your pipeline syntax.

Can a single Jenkins job run on multiple nodes yes or no?

You can now launch all a job on all nodes.


1 Answers

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

like image 152
sti Avatar answered Sep 19 '22 04:09

sti