[Buildbot-devel] How to set revision number for nightly builds

Bob Hood bhood2 at comcast.net
Wed May 25 13:42:04 UTC 2011


On 5/25/2011 4:20 AM, Pavel Berdnikov wrote:
> Hello,
>
> I have 2 schedulers: for a regular build every change in SVN and for
> nightly build. No problem with regular build because the scheduler set
> revision number and build is based on this revision.
> My question is: how I can set the revision number for nightly build in
> one place for all builders?
>
> I thought about customizing scheduler, but didn't find anything about
> it in documentation.

What about using a build step?

I have a build step at a point after the SVN update occurs, and before the
build actually begins, that extracts the revision from the root of the working
copy (using 'svn info') and then substitutes it into the build in strategic
locations.  After the build is complete, I have a step that recursively
reverts all local modifications.  So, my builds are self-configuring and
self-cleaning.

Just a thought.


Render me gone,                       |||
Bob                                 ^(===)^
---------------------------------oOO--(_)--OOo---------------------------------
 We can't all be architects. Some of us excel at building from the blueprints.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20110525/cebf8eb2/attachment.html>


More information about the devel mailing list