[Buildbot-devel] Incorporating environment settings into a factory

Richard Offer offer at fastscale.com
Thu Jan 24 01:32:50 UTC 2008


Thanks for the idea Ben, I'm still unclear how buildbot is architected.

Does it build its commands to be executed once when it parses the file or when the steps are executed ?

I need to get the input form the source tree, so I could possibly build the python object up from the SVN checkout and then pass it across to the subsequent steps - but I'd assumed that that wouldn't work.


Richard.



-----Original Message-----
From: Ben Hearsum [mailto:bhearsum at wittydomain.com]
Sent: Wednesday, January 23, 2008 3:45 PM
To: Richard Offer
Cc: buildbot-devel at lists.sourceforge.net
Subject: Re: [Buildbot-devel] Incorporating environment settings into a factory

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

>
> _______________________________________________
> 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