[Buildbot-devel] string values from Force Build form

Dustin J. Mitchell dustin at v.igoro.us
Thu May 22 22:52:37 UTC 2014


On Thu, May 22, 2014 at 5:39 PM, Steve Bachor
<steve.bachor at netronome.com> wrote:
> Question is about the doc text above, am I correct in thinking the text
> above, "I can be used by a factory by setting buildClass on
> L{buildbot.process.factory.BuildFactory}", implies that if I set
> buildClass on BuildFactory I can get access to the Build instance at
> build time from a factory, thus getting at these property strings I am
> after?

Nope.  What you want to do, as Vasily has explained, is PHYSICALLY
IMPOSSIBLE without inventing time travel.  When the BuildFactory is
defined, there is no Build - it hasn't been invented yet.

> If so, how does one set buildClass on
> L{buildbot.process.factory.BuildFactory}??

class MyBuildClass(Build):
  ...
factory.buildClass = MyBuildClass

Dustin




More information about the devel mailing list