You are viewing a plain text version of this content. The canonical link for it is here.
Posted to builds@apache.org by Herbert Duerr <hd...@apache.org> on 2014/06/04 11:21:04 UTC

default branch substitutions used in buildbot scripts

I just wanted to share a small detail that might be interesting to other users of the ASF buildbot service:

Many of these projects use a pattern in their project specific buildbot configuration
  Interpolate("https://svn.apache.org/repos/asf/%(src::branch:-prj/trunk)s")

This means that the prj/trunk sub-tree of the ASF repo is checked out if src::branch
does not exist. But if src::branch is empty then the whole ASF repo gets checked out!
The variable can be empty e.g. when the buildbot is triggered from IRC.

The solution is simple. Just change the letter '-' (minus) to a '~' (tilde) i.e.
  Interpolate("https://svn.apache.org/repos/asf/%(src::branch:~prj/trunk)s")
so that the default branch is also used when src::branch is empty.

Currently only the subversion and openoffice projects use the tilde-substitution,
but 37 of the 55 other projects still do minus-substitution. They might want
to review these replacement patterns.

Herbert

Re: default branch substitutions used in buildbot scripts

Posted by Gavin McDonald <ga...@16degrees.com.au>.
Thanks Herbert, thats a config option I either missed or got wrong to start with.

I've changed all projects to use the tilde.

Thanks!

Gav…

On 04/06/2014, at 10:21 AM, Herbert Duerr <hd...@apache.org> wrote:

> I just wanted to share a small detail that might be interesting to other users of the ASF buildbot service:
> 
> Many of these projects use a pattern in their project specific buildbot configuration
>  Interpolate("https://svn.apache.org/repos/asf/%(src::branch:-prj/trunk)s")
> 
> This means that the prj/trunk sub-tree of the ASF repo is checked out if src::branch
> does not exist. But if src::branch is empty then the whole ASF repo gets checked out!
> The variable can be empty e.g. when the buildbot is triggered from IRC.
> 
> The solution is simple. Just change the letter '-' (minus) to a '~' (tilde) i.e.
>  Interpolate("https://svn.apache.org/repos/asf/%(src::branch:~prj/trunk)s")
> so that the default branch is also used when src::branch is empty.
> 
> Currently only the subversion and openoffice projects use the tilde-substitution,
> but 37 of the 55 other projects still do minus-substitution. They might want
> to review these replacement patterns.
> 
> Herbert