Unable to run nohup command from jenkins as a background process

后端 未结 7 2177
醉话见心
醉话见心 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:10

    Got the same problem, added:

    BUILD_ID=dontKillMe python /var/lib/jenkins/release.py
    

    into Execute Shell -> Command and inside release.py there is:

    os.system('nohup java -jar ' + new_jars_on_server + '/' + generated_jar_by_mvn_name + '&')
    

    and it works

提交回复
热议问题