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

Mark Richardson (Internal) mark.richardson at nag.co.uk
Wed May 25 14:26:20 UTC 2011


Hi all,
Just adding an observation.
I think Bob's solution is okay to the point where he reverts the
source. A copy of the source should be archived for reference at
least. (I do that before I start the compilation)
If anything goes wrong with the build (or later if results for a
customer are wrong) then the exact source used to build it
[whatever software] is available for debugging.

I have an situation in that some source comes from an external 
repository and snapshotting that is not really under my control...
... hmm, the hoops we jump through.

Mark

On 25/05/2011 14:42, Bob Hood wrote:
> 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.
>
>
> ________________________________________________________________________
> This e-mail has been scanned for all viruses by Star.
> ________________________________________________________________________
>
>
>
> ------------------------------------------------------------------------------
> vRanger cuts backup time in half-while increasing security.
> With the market-leading solution for virtual backup and recovery,
> you get blazing-fast, flexible, and affordable data protection.
> Download your free trial now.
> http://p.sf.net/sfu/quest-d2dcopy1
>
>
>
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________




More information about the devel mailing list