I want to use a list of nodes to launch a command on specific nodes, so I 
tried this:

for (node_name in all_nodes) {
    node(node_name) {
        echo 'My name is ' + node_name
    }
}

This works for the first node in "all_nodes" but then fails after that.  Is 
there a better way to do this?

-- 
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/3c6adaa7-a259-437e-82a9-24a5ebace12a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to