[users at bb.net] Same workdir for two builders

Ryan Schmidt buildbot at ryandesign.com
Sun Aug 7 14:42:28 UTC 2016


On Jul 29, 2016, at 5:52 AM, Ryan Schmidt wrote:

> Hi, I have several buildbot 0.8.12 worker machines, each with two builders. One of the builders ("watcher") is triggered by changes in the version control system. It does some preliminary setup work, then triggers one or more jobs on the other builder ("builder") which does the actual building. The "watcher" waits until all the jobs it triggered on "builder" have finished. I would like "watcher" and "builder" to share some files, and it seems natural to want to place those files in the workdir, which means they would need to share the same workdir. What's the best way to accomplish that, or is there a reason why I shouldn't do that? The most relevant documentation I found through Google was:
> 
> http://docs.buildbot.net/current/manual/customization.html#factory-workdir-functions
> 
> But that talks about using a callable function to return a workdir determined at runtime. I don't need that. How can I just set a different default workdir, for all build steps (while still allowing one build step to override that)? Can I just set build_factory.workdir to a string instead of a function? Is that documented somewhere that I missed?
> 

Just to close this thread out:

I looked at the buildbot code, and it seemed to say that it would call workdir and get its result, if workdir was callable, otherwise it would use workdir verbatim. Therefore I used:

my_factory = BuildFactory()
my_factory.workdir = '../build'

and this is working fine.



More information about the users mailing list