Hello,
A quick post to share with you how to launch a deamon process – like a webserver 🙂 – with jenkins on linux.
Using
1 |
nohup myApp & |
or
1 |
myApp & |
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.
1 2 |
export BUILD_ID=DoNotKillMe nohup myApp & |
Otherwise you process will be killed when the jenkins script finish.
Cheers.
Hichame