Unable to run nohup command from jenkins as a background process

后端 未结 7 1988
醉话见心
醉话见心 2021-02-15 10:59

UPDATE: Based on below discussion I have edited my answer for more accurate description.

I am trying to run a nohup command from jenkins. The full command is

         


        
7条回答
  •  情歌与酒
    2021-02-15 11:32

    In your jenkins shell script try:

      export BUILD_ID=dontKillMe
      nohup java -jar your_java_app.jar &
    

    It worked for me!

提交回复
热议问题