So I have not run in an ode block I will do more testing thank you.

Here is a sample of my code: 

*#!groovy*
*import hudson.model.**

*stage('many_jobs') {*
*    parallel (get_many_jobs(6000))*
*}*

*def get_many_jobs(num_builds) {*
*    // The map we'll store the parallel steps in before executing them.*
*    def stepsForParallel = [:]*

*    for (int i = 0; i < num_builds; i++) {*
*        def sub_run_config = 'job_' + i*
*            stepsForParallel[sub_run_config] = {*
*                build job: 'sleep_30', parameters: [string(name: 
'job_name', value: sub_run_config)]*
*         }*
*    }*
*    return stepsForParallel*
*}*

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/556d4421-e495-43af-9f76-d7ad1c39b07e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to