[Buildbot-devel] ChangeFilter would accept different attributes for the same filter?
Dustin J. Mitchell
dustin at v.igoro.us
Mon Mar 10 22:38:37 UTC 2014
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 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!
Dustin
More information about the devel
mailing list