[Buildbot-devel] 0.7.10p1: slave properties don't work

Gregor Mitsch Gregor.Mitsch at em.ag
Tue Mar 31 15:59:01 UTC 2009


Hi all,

this is my buildbot version:
  Buildbot version: 0.7.10p1
  Twisted version: 8.2.0

I'm trying to setup a master.cfg with slave properties like this:

...

# assign some properties to the slave:
c['slaves'].append(BuildSlave(slavename, "...", properties={'prop1':'val1', 'prop2':'val2'}, max_builds=2))

...

# defining the BuildFactory
bf.addStep(ShellCommand(command=['python.exe',
                                      "%PYLIB_SRC%/Scripts/compile4.py",
                                      WithProperties("--option1=%(prop1)s")
                                     ],
                                   logfiles = { 'mylog': "bs_log_toolchain.txt" },
                                   description="Compiling",
                                   descriptionDone="Compile"))


Now I run a forced build on the builder and get the result:

  File "C:\Python26\Lib\site-packages\buildbot\process\properties.py", line 156, in render
    s = self.fmtstring % pmap
  File "C:\Python26\Lib\site-packages\buildbot\process\properties.py", line 131, in __getitem__
    rv = properties[key]
  File "C:\Python26\Lib\site-packages\buildbot\process\properties.py", line 42, in __getitem__
    rv = self.properties[name][0]
exceptions.KeyError: 'prop1'

Are slave properties supposed to work? It seems like the properties dictionary does not know anything about my slave properties prop1 and prop2. Am I doing something wrong? As reference I used http://djmitche.github.com/buildbot/docs/0.7.10 .

Thanks in advance,

Gregor







More information about the devel mailing list