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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/e6814091-2687-4afd-97cb-e1b9e4e70054%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to