[Buildbot-devel] sharing buildsteps

Stefan Seefeld seefeld at sympatico.ca
Wed Nov 21 22:02:55 UTC 2007


Brian Warner wrote:

> But since the original steps are just being used as templates to create new
> ones, if you don't need to modify the steps (just re-use them), you should be
> able to do the following safely:
> 
>  checkout = Darcs(repo, stuff)
>  test = ShellCommand(stuff)
>  package = ShellCommand(otherstuff)
> 
>  f1 = BuildFactory()
>  f1.addStep(checkout)
>  f1.addStep(test)
>  
>  f2 = BuildFactory()
>  f2.addStep(checkout)
>  f2.addStep(test)
>  f2.addStep(package)
> 
> Is that the kind of functionality you're talking about?

Yes, precisely. I hadn't realized the steps didn't have any state beyond
the parameters passed to construction. Thanks !


		Stefan

-- 

      ...ich hab' noch einen Koffer in Berlin...




More information about the devel mailing list