[Buildbot-devel] source change for sf.net hosted CVS

Stefan Kost ensonic at hora-obscura.de
Tue Jan 9 19:13:15 UTC 2007


Hi Brian,

thanks for the prompt reply.

Brian Warner wrote:
> "ensonic" <ensonic at hora-obscura.de> writes:
> 
>> this might be a FAQ. How do I trigger source changes from a sf.net hosted
>> CVS. I can't install 'buildbot' there to do 'buildbot sendchange' from the
>> commithook.
> 
> For sf.net, I'd suggest using email. There are a couple of ChangeSources
> which acquire mail in one way or another, and then parse them to determine
> which files were changed (by whom, with which comments, etc). The existing
> code knows how to poll a maildir for new messages, but it shouldn't be to
> hard to add others. The parsing function depends upon what code is emitting
> the mail message.. for sf.net CVS I think you'll want to use syncmail.
> 
> The usual approach is to make sure your commithook sends mail to a mailing
> list (usually named PROJECT-commits), and then subscribe your buildmaster's
> account to this list. Then each time a file is changed, everybody (including
> the buildmaster) gets email about it, and the buildmaster turns that email
> into a Change object that triggers a new build.
>
We already use the sf.net syncmail to send commit mails. I see two more
questions with this approach
* the bot needs a mail address, needs to be subscribed to the mailing list and
fetch mails regularily (who will cleanup his inbox)
* we have multiple modules, will the parse understand that and trigger the right
build?

> 
> http://buildbot.sourceforge.net/manual-0.7.5.html#Other-mail-notification-ChangeSources
> contains some information on these sorts of change sources, but it probably
> needs to be expanded a bit.
> 
> hope that helps,
>  -Brian

Thanks again,

Stefan




More information about the devel mailing list