My guess is that ant.env(key:'BUILD_ID',value:'DO_NOT_STOP_MY_PROCESS_JENKINS') sets the environment variable in the spawned process, but not in the parent (Jenkins). That value needs to be visible to the Jenkins process.
Matthew Webber ---- From: Gábor Lipták [mailto:gabor.lip...@gmail.com] Sent: 03 September 2014 09:37 To: jenkinsci-users@googlegroups.com Subject: Fwd: Spawning process in a job seems to be non working Hi, Could anyone give me a hint, how to fix this: http://stackoverflow.com/q/25639678/337621 Thanks, Gábor Lipták -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.