[Buildbot-devel] build number

Aaron Maxwell amax at snaplogic.org
Sat Dec 1 01:25:10 UTC 2007


On Friday 30 November 2007 07:25:41 Dorene Wagner wrote:
> How does one capture the build number from the buildbot? Is there a
> variable that I can access in master.cfg?

Yes, using WithProperties('%(buildnumber)s').  One example:

from buildbot.steps.shell import ShellCommand, WithProperties
...
factory.addStep(ShellCommand,
    description='Generate Extra Reports',
    command=['gen-extra-reports.sh', WithProperties('%(buildnumber)s')])


There are some other ways to specify it.  See 
http://buildbot.net/repos/release/docs/buildbot.html#Build-Properties for 
more details.

>
> Thanks,
> Dorene Wagner
>
> -------------------------------------------------------------------------
> SF.Net email is sponsored by: The Future of Linux Business White Paper
> from Novell.  From the desktop to the data center, Linux is going
> mainstream.  Let it simplify your IT future.
> http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel



-- 
Aaron Maxwell .:. amax at snaplogic.org .:. http://snaplogic.org
SnapLogic, Inc. - Data Integration for the Last Mile




More information about the devel mailing list