[Buildbot-devel] source code update via SVN

雷东壁 dongbi_lei at yahoo.com
Mon Jul 27 06:41:43 UTC 2009


Hi all,
I'm using SVN to watch and update source code. But when there are some updates in source code server, it will delete and checkout all the source code in 'build' dir on buildslave server. It's terribly time consuming! What I want is just updating the changed source files.
My config is(both on Windows):
.........
c['change_source'] = SVNPoller("https://rep.project.com/SourceCode",
                                svnbin = "C:\Program Files\CollabNet Subversion Client\svn.exe",
                                pollinterval = 60*60)

everyday = scheduler.Periodic(name = "everyday",
                     builderNames = ["MainBuilder"],
                     periodicBuildTimer = 24*60*60)

everychange = scheduler.AnyBranchScheduler(name = "everychange",
                                    builderNames = ["MainBuilder"],
                                    branches = None,
                                    treeStableTimer = 5*60)                     

c['schedulers'] = [everyday, everychange]



f1 = factory.BuildFactory()

f1.addStep(SVN,
            svnurl='https://rep.project.com/SourceCode',
             mode='update',
            alwaysUseLatest = True,
            haltOnFailure = True)
...........

The build steps are omitted. This f1.addStep above will result in the time consuming code checkout. How to avoid it?

thx!
Bill


      ___________________________________________________________ 
  好玩贺卡等你发,邮箱贺卡全新上线! 
http://card.mail.cn.yahoo.com/




More information about the devel mailing list