How to have a GitPoller build source to modify all branches?

I am looking for a way to have a GitPoller changesource look at all branches instead of one.

Currently, I either specify branch='some branch' in the GitPoller constructor, or it defaults to master .

Even better would be to specify some ref pattern to view.

Is it already doing something? Or do you need to code a different kind of GitPoller?

Thanks.

+6
source share
3 answers

Currently, GitPoller can only watch one branch at a time. However, you can have as many GitPoller as you want.

+1
source

This is finally implemented: https://github.com/buildbot/buildbot/pull/1010 .

It should be part of the upcoming buildbot 0.8.9 release.

Then you can use branches=True .

+8
source

This seems to be fixed in the latest buildbot 8.8.8

https://github.com/buildbot/buildbot/blob/master/master/buildbot/changes/gitpoller.py

Edit:

Instead of branch='development'

you can use branches=[ 'development', 'other' ]
+1
source

Source: https://habr.com/ru/post/913294/


All Articles