When running a process on a slave using execute system groovy, what's the correct way to syncronise so a wait() can be performed on the process?
def proc = "dir".execute() synchronized (proc) { proc.consumeProcessOutput(out, out) proc.wait(); } this just waits forever and not synchronising causes and exception. -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/64e99f96-a409-42db-940d-5bca578378a6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.