[Buildbot-devel] Adding a Changelist to Buildbot Notification emails

Chris Kwan chriswkwan at gmail.com
Mon Apr 20 10:58:51 UTC 2009


Dear Buildbot Community,

I would like to modify the buildbot mail notifier to be able to append a
changelist to the build notification email that gets sent when a build
completes.  The changelist is to be a report of the changes between the
current build and the last successful built.

We have a tool that can generate a changelist report given two changelist
numbers, the problem we are running into is how to retrieve these two
numbers because for our build configuration, there is not really a concept
of a last build.  In this build configuration, we have to force the build
manually with the click of a button on our web interface, and when forcing
the build, you can specify any revision number to build from (and thus you
could choose an older revision number).


   - Is there a way to keep track of the latest last known good build
   revision number?  For example, our web page would have a form that looked
   like the following:
   - Also, do you know where the following parameters (name, reason, branch,
   revision) get passed to in case we would want to catch them for error
   checking?

=====
Your name:
Reason for build:
Branch to build:
Revision to build:

Last known good build, which is build #67 was at changelist 4910.
Generate changelist report starting from [4910] (with [4910] being in a text
box that you could change if you wanted to start the report from an older
build)
=====

Another idea is to have our build run by a scheduler, so that a new build is
built every night.  Since the scheduler is always building a new build, it
will know the last successful build that it built.

   - Is there a way that we can trigger the scheduler on demand through the
   web interface?


   - And if so, how can we retrieve the the current revision number and last
   revision number that the scheduler has built?


Any help or suggestions would be much appreciated.

Thank you,
Christopher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20090420/9dc1a01d/attachment.html>


More information about the devel mailing list