[Buildbot-devel] buildbot try, which steps.source.oldsource.SVN

David Froger david.froger.ml at gmail.com
Wed Mar 28 06:52:43 UTC 2012


Hi,

Since Try_Jobdir now supports properties [1] (that's great, thanks!),
I'm trying again to apply the patch
sent by 'buildbot try' on the good SVN branch (I have twice, one
'trunk' and on 'data', and the patch is
apply on both. So if the patch is for 'trunk', 'data' is removed,
'trunk' is checked out into 'data' and patched).

I'm using Buildbot 0.8.6p1.


But I don't understand how to use properties to implement it. In my
master.cfg, where should I use the
property sent by 'buildbot try' ? When I create the
'buildbot.steps.source.oldsource.SVN' ?

[1] http://trac.buildbot.net/ticket/2126

Thanks!
David



My factory is composed 2 steps.source.oldsource.SVN :
 - a first one to checkout a 'trunk' branch: https://(...)/project/trunk
 - a second one to checkout a 'data' branch:
https://(...)/project/data, data being needed for the tests.

####### factory

from buildbot.steps.source.oldsource import SVN

 s = SVN(baseURL='https://(...)/project/%%BRANCH%%',
        defaultBranch='trunk', # or 'data'
        username="USER",
        password="PASSWD",
        workdir="./build/trunk",
        mode='update' )

f.addStep(s)

s = SVN(baseURL='https://(...)/project/%%BRANCH%%',
        defaultBranch='trunk', # or 'data'
        username="USER",
        password="PASSWD",
        workdir="./build/data",
        mode='update' )

f.addStep(s)



And my try sheduler is:

####### Try scheduler

Try_Jobdir(name="try1",
       builderNames=['...', '...'],
       jobdir="jobdir")




More information about the devel mailing list