[Buildbot-devel] Incorporating environment settings into a factory

Ben Hearsum bhearsum at wittydomain.com
Wed Jan 23 23:44:40 UTC 2008


There's a ticket open about this:
http://buildbot.net/trac/ticket/100

Currently, the best way to do this is to define your environment 
settings in a variable and pass them to each BuildStep.

eg:
myenv = {'foo': 'bar', 'blah': 'blah'}

myfactory = factory.BuildFactory()
myfactory.addStep(ShellCommand, ...,
                   env=myenv)
myfactory.addStep(ShellCommand, ...,
                   env=myenv)

Cheers.
- Ben

Richard Offer wrote:
>  
> 
> What is the best way to add environment variables to be supplied for all 
> steps in a factory ?
> 
>  
> 
> I have a factory (with multiple build steps) that runs on Windows and I 
> need to set the VS environment variables.
> 
>  
> 
> In a manual build – I source the variables into the shell I’m using and 
> then type make
> 
>  
> 
> Thanks
> 
>  
> 
> Richard.
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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