[Buildbot-devel] How to build factory when using change_source with branches?

Georgi Valkov georgi.t.valkov at gmail.com
Mon Oct 18 13:01:10 UTC 2010


Hi,

The examples in the SVNPoller [1] documentation are misleading. Better have a
look at the SVN vc step [2]. It should go something like this:

  split_file_function = ( ... )
  svnroot='svn://path/to/repo'

  poller = SVNPoller( svnurl=svnroot,
                      pollinterval=5*60,
                      histmax=50,
                      split_file=split_file_function,
                    )

  vc_cmd = SVN( baseURL=svnroot,
                mode='update',
                defaultBranch='trunk',
              )

Buildbot will export the 'branch' property which you can later use in your
buildsteps. Don't know if it's intentional, but if the sourcestamp doesn't
specify a branch, the branch property won't be set, even if defaultBranch is
not None.

Best,
G.

[1] http://buildbot.net/buildbot/docs/current/SVNPoller.html
[2] http://buildbot.net/buildbot/docs/current/SVN.html




More information about the devel mailing list