[Buildbot-devel] Get build info in mail

Amber Yust ayust at yelp.com
Fri Jul 29 19:58:05 UTC 2011


Have you tried build.getProperty() ?

~Amber

On Fri, Jul 29, 2011 at 12:46 PM, Bhavik <bhavikdbavishi at gmail.com> wrote:

> Hi,
>
> I am trying to get build information like workdir, starttime,
>  endtime and property
> values which are passed using "Force Build" on webpage.
>
> I am able print using build.__dict__ but when try to access from it,
>  throws an
> exception ...
> =======================================================================
> exec f in localDict exceptions.SyntaxError: invalid syntax (master.cfg
> =======================================================================
>
> I am using mail format function which is ..
> =======================================================================
> def html_message_formatter(mode, name, build, results, master_status):
> ....
> =======================================================================
>
> I tried to get value using WithProperties("%s", "build_version") ...
>  but it returns object like ..
> =======================================================================
> <buildbot.process.properties.WithProperties instance at 0x1385760>
> =======================================================================
>
> Could you please guide me to retrieve those information ?
> thanks in advance.
>
>
>
> ------------------------------------------------------------------------------
> Got Input?   Slashdot Needs You.
> Take our quick survey online.  Come on, we don't ask for help often.
> Plus, you'll get a chance to win $100 to spend on ThinkGeek.
> http://p.sf.net/sfu/slashdot-survey
> _______________________________________________
> 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/20110729/4142a84e/attachment.html>


More information about the devel mailing list