[Buildbot-devel] Trigger build based on checkin comments?

tom fogal tfogal at sci.utah.edu
Sun Dec 12 23:44:36 UTC 2010


Bill Deegan <bill at baddogconsulting.com> writes:
> I'm wondering if I can configure buildbot to trigger a build based on
> checkin comments.
> We're using perforce and P4Poller currently.
> 
> I'd like to fire a build into a particular builder if the comment has
> "BUILDBOT_BUILDER_X" in it for example.
> 
> Is this possible?

Of course, but I imagine you'd have to define your own poller.

> Anyone already done this and willing to share some code?

I have a vague memory that, based on their checkin comments, I figured
the chrome folks are doing this.  Their BB configs are available in
their public svn repo:

  http://src.chromium.org/viewvc/chrome/trunk/tools/buildbot/

I expect it would be more work to figure out how they do it than to
just do it, though.  I would bet a quicker route would be to look at
the pydoc for p4poller and/or its parent classes, and see if there's a
method you can override in a derived class.

cheers,

-tom




More information about the devel mailing list