So I was not running in a node 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/7a53b09c-d8e9-4f9e-93b3-4333e88c25c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to