I'm trying to execute a system command on the server from a client and wait
for its result, the syncronization was a side effect of using wait(),
waitFor() is what I was after though, thanks.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To
What are you trying to do actually? I don't understand why you use a
synchronized block. Also, wouldn't you be using proc.wait() instead of
waitFor()?
2016-01-21 13:48 GMT+01:00 Niksan :
> When running a process on a slave using execute system groovy, what's the
> correct way to syncronise so a w
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 synchronisin