[Buildbot-devel] [SOLVED] Re: No branch attribute in SVN source step of builder
Markus Blatt
markus at dr-blatt.de
Thu Jan 24 10:35:38 UTC 2013
Hi,
after a good night of sleep, I figured out what the problem is:
On Thu, Jan 24, 2013 at 12:26:01AM +0100, Markus Blatt wrote:
>
> I am currently setting up buildbot for a multiple repository project.
> In addition I want to have a scheduler and builder that works for
> serveral branches. Depending on the changeset the builder should
> checkout the correct branch into a branch specific directory.
>
> My idea was to use the branch property during the SVN checkout with
> either Interpolate
>
> factory.addStep(SVN(repourl=Interpolate(svn_root+name+'/%(branch)s/'),
> workdir=Interpolate('.%(branch)s/'+name),
> mode='incremental',codebase=name, haltOnFailure=True))
As this is a multiple repository project, there is no branch
attribute. Still we can use Interpolate to get the branch, but we need
use the src key and provide the codebase (saved in variable name), too:
factory.addStep(SVN(repourl=Interpolate(svn_root+name+'/%(src:name:branch)s/'),
workdir=Interpolate('.%(src:name:branch)s/'+name),
mode='incremental',codebase=name, haltOnFailure=True))
Now the checkout works like a charm!
Cheers!
Markus
More information about the devel
mailing list