<Facepalm> Thank you :)
On Monday, October 26, 2015 at 4:25:02 PM UTC+1, Rob Mandeville wrote: > > I think your problem is no bigger than a typo. It’s “parallel”, not > “paralell”. The double-L is at the middle, not the end. > > > > --Rob > > > > *From:* [email protected] <javascript:> [mailto: > [email protected] <javascript:>] *On Behalf Of *Jakub > Gladykowski > *Sent:* Monday, October 26, 2015 10:23 AM > *To:* Jenkins Users > *Subject:* Unable to schedule paralell builds using build flow dsl > (java.util.ArrayList in place of set of closures) > > > > Hi all, > > Coming from Python world, I'm trying to schedule paralell execution of builds > using build flow plugin. However I fail everytime, using simplest > implementation from internet: > > > build_number = '1234' > //Get all jobs from folder '1234' > jobs = > jenkins.model.Jenkins.instance.getItemByFullName(build_number).getAllJobs() > > def jobs_to_run = [] > > jobs.each { > def closure = { > build('/' + build_number + '/' + it.getDisplayName()) > } > jobs_to_run.add(closure) > } > > paralell(jobs_to_run) > > > Everytime I get error: > > No signature of method: com.cloudbees.plugins.flow.FlowDelegate.paralell() is > applicable for argument types: (java.util.ArrayList) values: > [[Script1$_run_closure1_closure2@4545b0b4, ...]] > Possible solutions: parallel([Lgroovy.lang.Closure;), > parallel(java.util.Collection), parallel(java.util.Map) > > > Output of println(jobs_to_run): > > [Script1$_run_closure1_closure2@4545b0b4, > Script1$_run_closure1_closure2@245a2f77, > Script1$_run_closure1_closure2@72e83ff6] > > Where do I make mistake? > > -- > 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/e6814091-2687-4afd-97cb-e1b9e4e70054%40googlegroups.com > > <https://groups.google.com/d/msgid/jenkinsci-users/e6814091-2687-4afd-97cb-e1b9e4e70054%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > Click here > <https://www.mailcontrol.com/sr/xH3kqTEEXhbGX2PQPOmvUqW!RI4xIDLrq9Subiz2mgZ4uCb!a9P+QKTVMA3tHuWEeUtEYsJvqUrCP4z!bwErJQ==> > > to report this email as spam. > > ------------------------------ > This e-mail and the information, including any attachments it contains, > are intended to be a confidential communication only to the person or > entity to whom it is addressed and may contain information that is > privileged. If the reader of this message is not the intended recipient, > you are hereby notified that any dissemination, distribution or copying of > this communication is strictly prohibited. If you have received this > communication in error, please immediately notify the sender and destroy > the original message. > > Thank you. > > Please consider the environment before printing this email. > -- 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/75693335-dd35-4a7a-982b-1e2608533712%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
