Jenkins seems to be the target for nohup in a script started via ssh, how can I prevent that?

前端 未结 4 453
暗喜
暗喜 2021-01-14 00:35

I am trying to create a Jenkins job that restarts a program that runs all the time on one of our servers.

I specify the following as the command to run:



        
4条回答
  •  星月不相逢
    2021-01-14 01:04

    I had a similar problem with runnning a shell script from jenkins as a background process. I fixed it by using the below command:

    BUILD_ID=dontKillMe nohup ./start-fitnesse.sh &

    In your case, BUILD_ID=dontKillMe nohup java NameOfClass &

提交回复
热议问题