Devin Lim | 90803a8 | 2017-08-29 13:41:44 -0700 | [diff] [blame] | 1 | #!groovy |
Devin Lim | 6164376 | 2017-12-07 15:55:38 -0800 | [diff] [blame] | 2 | |
Devin Lim | 2edfcec | 2018-05-09 17:16:21 -0700 | [diff] [blame] | 3 | def triggerJob( on ){ |
4 | jobToRun = on + "-pipeline-trigger" | ||||
5 | build job: jobToRun, propagate: false | ||||
Devin Lim | 61657e4 | 2017-10-09 17:24:40 -0700 | [diff] [blame] | 6 | } |
7 | |||||
Devin Lim | 2edfcec | 2018-05-09 17:16:21 -0700 | [diff] [blame] | 8 | machines = params.machines |
9 | machineList = machines.tokenize( "\n;, " ) | ||||
10 | machineOn = [:] | ||||
Jeremy Ronquillo | cdd177d | 2018-03-09 16:55:44 -0800 | [diff] [blame] | 11 | |
Devin Lim | 2edfcec | 2018-05-09 17:16:21 -0700 | [diff] [blame] | 12 | for machine in machineList{ |
13 | machineOn[ machine ] = triggerJob( machine ) | ||||
Devin Lim | 90803a8 | 2017-08-29 13:41:44 -0700 | [diff] [blame] | 14 | } |
Jeremy Ronquillo | 14ecc17 | 2018-03-05 09:57:17 -0800 | [diff] [blame] | 15 | |
Devin Lim | 2edfcec | 2018-05-09 17:16:21 -0700 | [diff] [blame] | 16 | parallel machineOn |