Re: Project doBuild with Stapler

2015-03-17 Thread Sverre Moe
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

Project doBuild with Stapler

2015-03-17 Thread Sverre Moe
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

Re: Project doBuild with Stapler

2015-03-17 Thread Daniel Beck
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 sverre@gmail.com wrote: Trying to call doBuild on a project in Groovy. I cannot find any examples