[Buildbot-devel] ChangeFilter would accept different attributes for the same filter?

shiny knight theshinyknight at me.com
Thu Mar 13 07:57:26 UTC 2014


Tahnsk Dustin for the reply

On Mar 10, 2014, at 3:38 PM, Dustin J. Mitchell <dustin at v.igoro.us> wrote:

> On Sun, Mar 9, 2014 at 9:12 PM, shiny knight <theshinyknight at me.com> wrote:
>> Hence my question: could I configure a filter, to trigger the builder for
>> either the project or repository attribute? Or does a filter accept only one
>> type of attribute?
>> 
>> Something like
>> 
>> myFilter= ChangeFilter ( project="datasetA",
>> repository="user at git.myrepo.com/proj/datasetB.git")
> 
> A filter combines attributes with an AND operation, but it sounds like
> you want OR instead.  To do that, you'll need to write a filter
> function -- but that shouldn't be too hard.
> 

I see; so basically you can put together different attribute, but they will be implicitly treated as AND.

I will write a function then; unless is possible to add more than one filter on each builder (which I would imagine is a NO )

Is there an example for an OR for a filter function? I learn a lot by example more than by reading.


>> I would love to know why, I get for some projects the project name and empty
>> repository, while for other projects I get instead an empty project name,
>> but I get the repository (they use the same git server, they just sit in
>> different folders, and the hooks are virtually the same file with just the
>> project name changed); but in the time being, if I can work around
>> configuring the filter, I will be more than happy
> 
> That does sound mysterious!
> 

Indeed it is; the git guy that put up our server has no idea :) 


> Dustin
> 
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/13534_NeoTech
> _______________________________________________
> 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