Launch deamon process with Jenkins

Hello,
A quick post to share with you how to launch a deamon process – like a webserver 🙂 – with jenkins on linux.
Using

or

inside jenkins script will not work, trust me, jenkins will start your app and stop it.

If you want to do this you must force jenkins to ‘forget’ your process by overriding the BUILD_ID variable before launching your app.

Otherwise you process will be killed when the jenkins script finish.

Cheers.

Hichame

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.