Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to have a buildbot GitPoller change source watch all branches?

I'm looking for a way to have a GitPoller changesource watch all branches instead of just one.

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

Even better would be to be able to specify some ref pattern to watch.

Is that something one does already? Or does it need to code another kind of GitPoller ?

Thanks.

like image 977
Romain Avatar asked Apr 16 '12 05:04

Romain


3 Answers

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

Should be part of the upcoming release of buildbot 0.8.9.

You can use branches=True then.

like image 77
kfunk Avatar answered Oct 17 '22 00:10

kfunk


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

like image 43
Tom Prince Avatar answered Oct 17 '22 00:10

Tom Prince


This seems to have been fixed in the latest release of buildbot 8.8.8

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

Edit:

You can use branches=[ 'development', 'other' ] in place of branch='development'

like image 26
G. Allen Morris III Avatar answered Oct 17 '22 01:10

G. Allen Morris III