[Buildbot-devel] Accessing workdir from BuildFactory

Daniel Eggert deggert at apple.com
Fri Aug 1 00:31:32 UTC 2008


Is there any way to access the "workdir" from a BuildFactory setup?

I've tried

f3.addStep(ShellCommand(command=["/Developer/usr/bin/packagemaker",
                                  "--root", WithProperties("% 
(workdir)s/myRoot"),
[...]


But that fails bitterly (on 0.7.7) with:

Traceback (most recent call last): File "/Library/Python/2.5/site- 
packages/buildbot/process/buildstep.py", line 677, in startStep  
d.addCallback(self._startStep_2) File "/System/Library/Frameworks/ 
Python.framework/Versions/2.5/Extras/lib/python/twisted/internet/ 
defer.py", line 191, in addCallback callbackKeywords=kw) File "/System/ 
Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/ 
twisted/internet/defer.py", line 182, in addCallbacks  
self._runCallbacks() File "/System/Library/Frameworks/Python.framework/ 
Versions/2.5/Extras/lib/python/twisted/internet/defer.py", line 317,  
in _runCallbacks self.result = callback(self.result, *args, **kw) ---  
<exception caught here> --- File "/Library/Python/2.5/site-packages/ 
buildbot/process/buildstep.py", line 700, in _startStep_2 skip =  
self.start() File "/Library/Python/2.5/site-packages/buildbot/steps/ 
shell.py", line 202, in start command =  
self._interpolateProperties(self.command) File "/Library/Python/2.5/ 
site-packages/buildbot/steps/shell.py", line 142, in  
_interpolateProperties return [self._interpolateProperties(val) for  
val in value] File "/Library/Python/2.5/site-packages/buildbot/steps/ 
shell.py", line 158, in _interpolateProperties return  
value.render(self.build) File "/Library/Python/2.5/site-packages/ 
buildbot/process/buildstep.py", line 1123, in render s =  
self.fmtstring % pmap File "/Library/Python/2.5/site-packages/buildbot/ 
process/buildstep.py", line 1099, in __getitem__ p =  
self.build.getProperty(name) File "/Library/Python/2.5/site-packages/ 
buildbot/process/base.py", line 199, in getProperty return  
self.build_status.properties[propname] exceptions.KeyError: 'workdir'

/Daniel





More information about the devel mailing list