Thank you for that. Difficult to find out these things by just reading the 
API.

tirsdag 17. mars 2015 10.39.58 UTC+1 skrev Daniel Beck følgende:
>
> These functions are not supposed to be called directly, they clearly 
> handle HTTP requests. 
>
> Just call scheduleBuild2 and use the returned QueueTaskFuture. 
>
> On 17.03.2015, at 10:34, Sverre Moe <[email protected] <javascript:>> 
> wrote: 
>
> > Trying to call doBuild on a project in Groovy. I cannot find any 
> examples on how to use this method when it comes down to StaplerRequest and 
> StaplerResponse. 
> > 
> > I am tempted to just call newBuild(), but I guess that would not get me 
> a hook into that build process/result. 
> > 
> > I am iterating through a list of downstream projects: 
> > For each downstream project, call doBuild. 
> >     The upstream project should wait, probably with 
> project.setBlockBuildWhenDownstreamBuilding(true) 
> >     If downstream project fails, then fail upstream project 
> > 
> > Using Groovy Postbuild 2.2 with latest Jenkins 1.604 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "Jenkins Developers" 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-dev/d882fbc5-35dc-4642-aaaf-6d0e2c5b013f%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" 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-dev/e814c6e9-7e39-4cd8-9f22-cb2b9ed60eef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to