In System Groovy build steps, this works:

---
hudson.model.queue.QueueTaskFuture build(String fullName) {
 def p = jenkins.model.Jenkins.instance.getItemByFullName(fullName)
 def thisR = Thread.currentThread().executable
 def f = p.scheduleBuild2(p.quietPeriod, new 
hudson.model.Cause.UpstreamCause(thisR))
 return f
}

def f1 = build('job1')
def f2 = build('job2')

// wait for both builds to finish
def b1 = f1.get()
def b2 = f2.get()
---

On 28.02.2014, at 13:36, dev123 <[email protected]> wrote:

>  But I have not found any examples on firing off a bunch of parallel 
> executions of job from the groovy plugin. Any suggestions to start a job in 
> parallel using the groovy build step?

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to