We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d672eea commit 7607dfaCopy full SHA for 7607dfa
pipeline-examples/parallel-multiple-nodes/ParallelMultipleNodes.groovy
@@ -1,7 +1,8 @@
1
def labels = ['precise', 'trusty'] // labels for Jenkins node types we will build on
2
def builders = [:]
3
for (x in labels) {
4
- def label = x
+ def label = x // Need to bind the label variable before the closure - can't do 'for (label in labels)'
5
+
6
// Create a map to pass in to the 'parallel' step so we can fire all the builds at once
7
builders[label] = {
8
node(label) {
0 commit comments