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]> 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].
> 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/79325E6B-0FF6-4E5C-A92B-F0A1A1F8FD23%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to