Did you enable in your test_job the option (approximate name) "allow
concurrent build if necessary"?

2015-08-25 10:11 GMT+02:00 Ohad Basan <[email protected]>:

> Hello
>
> I am trying to use build flow 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/832bd65f-b255-4bc9-b398-430146597e63%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/832bd65f-b255-4bc9-b398-430146597e63%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !

-- 
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/CANWgJS7dNpYj7%2BcGDT0N63rPhV8MqMQLaXnPESW7ctcuqn7O5A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to