Re: Running jobs in parallel using workflow

21 views
Skip to first unread message

Baptiste Mathus

unread,
Aug 31, 2015, 6:07:36 PM8/31/15
to jenkins...@googlegroups.com
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 <ohad....@gmail.com>:
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/832bd65f-b255-4bc9-b398-430146597e63%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !
Reply all
Reply to author
Forward
0 new messages