Unable to run nohup command from jenkins as a background process

后端 未结 7 2027
醉话见心
醉话见心 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!

    0 讨论(0)
提交回复
热议问题