Hey, I am building a map of nodes to run in parallel.
This works fine:
parallel unit.build_nodes
However, I am trying to flexible for some jobs that are memory/cpu
intensive and NOT in parallel. I want my library/dsl code to be same and do
something like:
if (do_parallel) {
parallel unit.build_nodes
} else {
def keys = unit.build_nodes.keySet() as List
for (s in keys) {
def _node = unit.build_nodes.get(s)
_node(s)
}
}
This works, but I am not getting my nice 'label' that prints out when I run
in parallel.
You can see me passing the key (label) with _node(s), but doesn't help.
My build_nodes map is created like examples, something like:
Map<String,Object> build_nodes = [:];
unit.build_nodes['FOO'] = ...
unit.build_nodes['FOO1'] = ...
When run in parallel I see 'FOO' and 'FOO1' and want the same when I
serialize.
Thanks!
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/ad6769dc-6b4f-4148-8838-c04a3f24d4e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.