[Buildbot-devel] Solved: FileDownload step raises an exception

Timothee Besset ttimo at idsoftware.com
Fri Apr 6 22:58:58 UTC 2007


Ok it works fine, I was using slavesrc/masterdst instead of
mastersrc/slavedest

It's a bit confusing though, it would be nice if those things could make
sure you are passing allowed parameters to them.

TTimo

Timothee Besset wrote:
> Hello
>
> I've tried FileDownload and the master excepts when trying to set it up:
>
> 2007/04/06 14:32 CDT [Broker,0,] error while creating step,
> factory=buildbot.steps.transfer.FileDownload, args={'masterdest': 'foo',
> 'workdir': 'build', 'slavesrc': 'foo'}
> 2007/04/06 14:32 CDT [Broker,0,] Build.setupBuild failed
> 2007/04/06 14:32 CDT [Broker,0,] Traceback (most recent call last):
>           File
> "/usr/lib/python2.4/site-packages/twisted/internet/defer.py", line 229,
> in callback
>             self._startRunCallbacks(result)
>           File
> "/usr/lib/python2.4/site-packages/twisted/internet/defer.py", line 294,
> in _startRunCallbacks
>             self._runCallbacks()
>           File
> "/usr/lib/python2.4/site-packages/twisted/internet/defer.py", line 307,
> in _runCallbacks
>             self.result = callback(self.result, *args, **kw)
>           File
> "/usr/lib/python2.4/site-packages/buildbot/process/builder.py", line
> 582, in _startBuild_2
>             d = build.startBuild(bs, self.expectations, sb)
>         --- <exception caught here> ---
>           File
> "/usr/lib/python2.4/site-packages/buildbot/process/base.py", line 308,
> in startBuild
>             self.setupBuild(expectations) # create .steps
>           File
> "/usr/lib/python2.4/site-packages/buildbot/process/base.py", line 361,
> in setupBuild
>             step = factory(build=self, **args)
>         exceptions.TypeError: __init__() takes at least 4 non-keyword
> arguments (2 given)
>
>
> This is with a very simple step line:
> f.addStep( transfer.FileDownload, slavesrc = 'foo', masterdest = 'foo' )
>
> $ buildbot --version
> Buildbot version: 0.7.5
> Twisted version: 2.4.0
>
> Suggestions?
>
> TTimo
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>   





More information about the devel mailing list