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