[Buildbot-devel] Multiple codebases got_revision property
Yasser LEBON
yasser.lebon at gmail.com
Fri Sep 13 12:14:17 UTC 2013
Thanks Jared.
I will create a bug for it. I found a workaround using WithProperties:
def get_codebase_revision(props):
if props.has_key('got_revision'):
return props['got_revision']['my_codebase']
return None
WithProperties('%(got_revision)s', got_revision=get_codebase_revision)
2013/9/13 Jared Grubb <jared.grubb at gmail.com>
> So, I've never tried this, but I dont think it works!
>
> 'got_revision' is actually a property, and it's not part of the
> SourceStamp object. So, Interpolate of a sourcestamp doesnt actually make
> this visible.
>
> And for a property that is a dict, you'd need to interpolate
> "got_revision['codebase']", which is currently not possible.
>
> I think this is something we should fix. Can you file a Trac on it?
>
> jared
>
> On Sep 11, 2013, at 6:18, Yasser LEBON <yasser.lebon at gmail.com> wrote:
>
> > Hello,
> >
> > I am using multiple codebases. In a step I want to get the
> "got_revision" of a specific codebase with
> Interpolate("(src:codebase_name:got_revision)s" but I got an empty string.
> >
> > Do you have an idea?
> >
> > Thanks.
> >
> > Yasser
> >
> ------------------------------------------------------------------------------
> > How ServiceNow helps IT people transform IT departments:
> > 1. Consolidate legacy IT systems to a single system of record for IT
> > 2. Standardize and globalize service processes across IT
> > 3. Implement zero-touch automation to replace manual, redundant tasks
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk_______________________________________________
> > 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/20130913/1d517e25/attachment.html>
More information about the devel
mailing list