[Buildbot-devel] Change builder's build #'s to match subversion changeset #?

Charles Lepple clepple at gmail.com
Wed Apr 27 01:42:53 UTC 2011

On Apr 26, 2011, at 4:45 PM, William Deegan wrote:

> Is there any way to modify the builder's build number to match the
> subversion changeset #?

If the build number were assigned to be the Subversion revision  
number, you would only be able to build each revision once before the  
build number is no longer unique. (When bringing up a new builder for  
NUT, I often end up resubmitting a build of one specific revision  
several times before I get all of the dependencies right.)

I'm not too familiar with that part of the code, but it might be tough  
to pass the revision number through to the code that assigns the build  
number (since got_revision is usually obtained through a build step  
after the build begins). I guess you could look through the change  
object, but this wouldn't be applicable if the build were triggered  
from the "force build" button (as above), or from a periodic-type  

Can you describe your particular situation in more depth? If you are  
looking for a more prominent SVN revision on the waterfall, you could  
probably get that by subclassing the SVN step, and using the  
got_revision property. The same would be true on a build status page,  
although you would want a fallback in case the SVN step fails (network  
trouble while checking out, etc).

More information about the devel mailing list