[Buildbot-devel] Dynamic steps in buildbot

Vitali Lovich vlovich at gmail.com
Thu Nov 20 03:48:24 UTC 2014


I did this a different way.

I have a special step (e.g. DynamicSteps).  It runs a script inside the repository that returns the set of new steps.
Then I set a custom Build class on the builder (e.g. DynamicRemoteBuild inheriting from Build).
Then in stepDone, I check if the completed step is an instance of DynamicSteps.

If it is, then I take the new set of steps & inject into self.steps & self.build_status.steps, taking care to maintain the correct order
so that it looks like the steps are inserted into the middle of the build.

DynamicSteps simply parses the log output to determine the set of new steps.

-Vitali

> On Nov 19, 2014, at 6:50 AM, Andrii Gerasymchuk <gera3dartist at gmail.com> wrote:
> 
> The idea is to hold steps' logic  on slave, and on build run, get steps from
> slave to master, put them in BuildFactory(), and fire build with this steps.
> 
> In fact there are two tasks to solve:
> -  steps should be transported from slave to server
> - newBuild() method should be overridden, to take list with steps,
> 
> the question here are,  is there a better approach for solving this, and if
> not, how to transport steps in nice and neat way from slave to master?
> 
> Sincerely,
> Andrii Gerasymchuk
> 
> 
> 
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel





More information about the devel mailing list