Skip to content

Commit d672eea

Browse files
author
Owen Mehegan
committed
Comment that explains the builders map
1 parent 347a880 commit d672eea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pipeline-examples/parallel-multiple-nodes/ParallelMultipleNodes.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ def labels = ['precise', 'trusty'] // labels for Jenkins node types we will buil
22
def builders = [:]
33
for (x in labels) {
44
def label = x
5+
// Create a map to pass in to the 'parallel' step so we can fire all the builds at once
56
builders[label] = {
67
node(label) {
78
// build steps that should happen on all nodes go here

0 commit comments

Comments
 (0)