Pergunta

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.

Foi útil?

Solução

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.

Outras dicas

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

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'

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top