still no good
I tried it like this

def concurrent=[:]
for (int i = 0; i < 6; i++) {
  concurrent["concurrent${i}"] = {
    build job: 'test_job', parameters: [[$class: 'StringParameterValue', 
name:'queue', value:     
    'automation_prod.q'],[$class: 'StringParameterValue', name:'dummy', 
value: "${i}"]]
    }
}
parallel concurrent

this way the value of the 'dummy' variable always changing.
On Tuesday, August 25, 2015 at 2:15:21 PM UTC+3, rginga wrote:
>
> You could add a parameter that the job does not use just so that the set 
> of parameters is different for each.
>
>  
>
> *From:* [email protected] <javascript:> [mailto:
> [email protected] <javascript:>] *On Behalf Of *Ohad Basan
> *Sent:* Tuesday, August 25, 2015 4:53 AM
> *To:* Jenkins Users
> *Cc:* [email protected] <javascript:>
> *Subject:* Re: running jobs in parallel using workflow plugin
>
>  
>
> this is problematic for me.
>
> I need to trigger the same job 5 times with the same parameter value?
>
> it's not possible in any way?
>
> if not I will hack it at the job level...
>
>
>
> On Tuesday, August 25, 2015 at 11:32:49 AM UTC+3, Daniel Beck wrote:
>
> Jenkins will collapse multiple queue items with identical parameters into 
> one. Make sure to pass different parameters. 
>
> On 25.08.2015, at 10:21, Ohad Basan <[email protected]> wrote: 
>
> > Hello 
> > 
> > I am trying to use workflow plugin to run a specific job 5 times 
> concurrently and then wait for all of the jobs to finish. 
> > this is the groovy snippet. 
> > 
> > def concurrent=[:] 
> > for (int i = 0; i < 6; i++) { 
> >   concurrent["concurrent${i}"] = { 
> >     build job: 'test_job', parameters: [[$class: 'StringParameterValue', 
> name:'queue', value:     
> >     'automation_prod.q']] 
> >     } 
> > } 
> > parallel concurrent 
> > 
> > the result is the job running only once. 
> > what am I doing wrong? 
> > 
> > thanks 
> > 
> > Ohad 
> > 
> > 
> > -- 
> > 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/cce83e26-4dbc-462a-b640-5e63cf91c0a8%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>
> -- 
> 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] <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/e5b1b119-f6d2-4cf8-85e1-9cac97cf9abb%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-users/e5b1b119-f6d2-4cf8-85e1-9cac97cf9abb%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/aa9a44b4-2825-423b-b2a3-236bc4d986cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to