[Buildbot-devel] Issue with WithProperty()

Amber Yust ayust at yelp.com
Thu Mar 24 18:25:06 UTC 2011


What version of buildbot are you running?

~Amber (sent from Droid, please forgive any typos!)
On Mar 24, 2011 10:53 AM, "Stefan Seefeld" <stefan at seefeld.name> wrote:
> Hello,
>
> I have just tried to inject a timestamp into a name argument used by a
> ShellCommand:
>
> f1.addStep(shell.ShellCommand(name='gen', workdir='.',
> command=['make',
> WithProperties('data-%(now)s.txt',
>
> now=lambda _: time.strftime("%Y-%m-%d"))]))
>
>
>
> Reconfiguring the build master yields this exception / traceback:
>
>
>
> ...
> File
> "/usr/lib64/python2.7/site-packages/twisted/internet/base.py", line 796,
> in runUntilCurrent
> call.func(*call.args, **call.kw)
> --- <exception caught here> ---
> File "/usr/lib/python2.7/site-packages/buildbot/master.py",
> line 488, in loadTheConfigFile
> self.loadConfig(f)
> File "/usr/lib/python2.7/site-packages/buildbot/master.py",
> line 506, in loadConfig
> exec f in localDict
> File "/home/stefan/work/buildbot/sandbox/master/master.cfg",
> line 124, in <module>
> now=lambda _: time.strftime("%Y-%m-%d"))))
> exceptions.TypeError: __init__() got an unexpected keyword
> argument 'now'
>
> Is there anything wrong with how I use 'WithProperties' above ? (I have
> taken the code from
>
http://buildbot.net/buildbot/docs/current/WithProperties.html#WithProperties
.)
>
>
> Thanks,
> Stefan
>
> --
>
> ...ich hab' noch einen Koffer in Berlin...
>
>
>
------------------------------------------------------------------------------
> Enable your software for Intel(R) Active Management Technology to meet the
> growing manageability and security demands of your customers. Businesses
> are taking advantage of Intel(R) vPro (TM) technology - will your software

> be a part of the solution? Download the Intel(R) Manageability Checker
> today! http://p.sf.net/sfu/intel-dev2devmar
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20110324/e758dcc1/attachment.html>


More information about the devel mailing list