[Buildbot-devel] WithProperties usage in source.SVN

Giuseppe Corbelli cowo78 at gmail.com
Wed Jul 14 12:14:16 UTC 2010

Hi all
I'm new to Buildbot usage, and have been crawling through the docs for a
couple of days.
Buildbot 0.8.1, ActivePyhton 2.6, Windows 7 for both master and slave.

Here's what I've done:
1) Setup a builder with a custom property:
builder_OmronInterface = BuilderConfig(
    name = "buildbot-OmronInterface",
    slavename = "bot-win7",
    builddir = "OmronInterface",
    slavebuilddir = "OmronInterface",
    factory = f1,
    properties = {
        'module': 'OmronInterface'

2) Setup a SVN checkout:
s1 = SVN(

The SVN step is then added to the factory f1 (builder_OmronInterface factory).

When I force the build step (using the WebStatus interface), I get an
exception in the svn process:
Traceback (most recent call last):
  File "C:\Program
Files\ActivePython2.6\lib\site-packages\buildbot\process\buildstep.py", line
718, in startStep
  File "C:\Program
Files\ActivePython2.6\lib\site-packages\twisted\internet\defer.py", line 260,
in addCallback
  File "C:\Program
Files\ActivePython2.6\lib\site-packages\twisted\internet\defer.py", line 249,
in addCallbacks
  File "C:\Program
Files\ActivePython2.6\lib\site-packages\twisted\internet\defer.py", line 441,
in _runCallbacks
    self.result = callback(self.result, *args, **kw)
--- <exception caught here> ---
  File "C:\Program
Files\ActivePython2.6\lib\site-packages\buildbot\process\buildstep.py", line
753, in _startStep_2
    skip = self.start()
  File "C:\Program
Files\ActivePython2.6\lib\site-packages\buildbot\steps\source.py", line 223,
in start
    self.startVC(branch, revision, patch)
  File "C:\Program
Files\ActivePython2.6\lib\site-packages\buildbot\steps\source.py", line 621,
in startVC
    self.args['svnurl'] = (self.computeRepositoryURL(self.baseURL) +
  File "C:\Program
Files\ActivePython2.6\lib\site-packages\buildbot\steps\source.py", line 173,
in computeRepositoryURL
    isinstance(repository, str) or isinstance(repository, unicode)

To me it looks like the baseURL parameter in SVN construction does not support
the WithProperties instance.
Am I right? Is this by design?
General question: can I setup properties in a builder and access such
properties in the builder factory steps?

        Giuseppe "Cowo" Corbelli ~\/~ My software: http://cowo.yoda2000.net
-<! Non c'e' niente da dire in proposito. Tutto quello che uno deve fare e'
  colpire i tasti giusti al momento giusto, e lo strumento suona da solo. !>-
                                J.S. Bach

More information about the devel mailing list