Re: [workflow] creating multiple threads programatically hangs

2015-11-02 Thread Chris Hillery
I'm dealing with similar issues to you, and don't yet have a good solution. However, a quick note: this - On Wednesday, October 21, 2015 at 1:44:17 PM UTC-7, euphxenos wrote: > > node() { > build job: 'parameterized-build-job' > } > is unnecessary. You don't need to

Re: [workflow] creating multiple threads programatically hangs

2015-10-21 Thread euphxenos
To answer my own question, this works for iterating across a map in a groovy workflow: def nodes = [:] nodes['alpha'] = [ 'OPT': 'alpha', ] nodes['beta'] = [ 'OPT': 'beta', ] def nodelist = nodes.keySet().toList() def paramnodes = [:] def nodename = null for (int i = 0; i <

[workflow] creating multiple threads programatically hangs

2015-10-19 Thread euphxenos
I'm new to Groovy and the Workflow plugin, so perhaps this is something obvious. I'm trying to create a set of threads to run in parallel, each one calling a parameterized job. If I do this, it works: def paramnodes = [:] paramnodes['alpha'] = { node() { build job: