I\'ve Groovy script as part of the Pipeline job in Jenkins as below:
node { stage(\'Testing\') { build job: \'Test\', parameters: [string(name: \
Just run into the same problem, and find a working solution. Just use foreach.
stage('testing') { def jobs = [:] [1,2,3,4,5].each{ i -> jobs["Test${i}"] = { build job: 'Test', parameters: [string(name: 'theparam', value: "${i}")], quietPeriod: 2 } } parallel jobs }