[Buildbot-devel] Default to trunk on force build

David Young david.young at db.com
Mon Dec 23 20:19:10 UTC 2013


Classification: Public

Hello. Our buildbot supports on-demand builds of branches via an IRC bot:

buildbot: force build --branch=<my-branch> <builder>

This also works for the trunk if we provide the --branch argument:

buildbot: force build --branch=trunk <builder>

We would like the build to default to the trunk so as not to need the 
--branch argument, but that isn't working for us. If we omit 
--branch=trunk then the SVN source attempts to check out the root url (in 
this case http://localhost/subversion/repos/map) . Here are the relevant 
snippets of our master.cfg:

map_svn_base_url = 'http://localhost/subversion/repos/map'

def my_split_file_branches(path):
    pieces = path.split('/')
 
    if pieces[0] == 'trunk':
        return ('trunk', '/'.join(pieces[1:]))
    elif pieces[0] == 'branches':
        return ('/'.join(pieces[0:2]),
                '/'.join(pieces[2:]))
    else:
        return None
 
sh_map_poller = SVNPoller(svnurl=map_svn_base_url,
                                                        pollinterval=60,
                                                        project='Service 
Hub',
 split_file=my_split_file_branches,
                                                        histmax=10)
c['change_source'].append(sh_map_poller)


srcurl = '%s/%%(src::branch)s/' % map_svn_base_url

f1.addStep(MapSVN(svnurl=Interpolate(srcurl), mode='clobber'))


So what am I doing wrong here? Thanks very much...

-- david


---
This communication may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this communication
in error) please notify the sender immediately and destroy this
communication. Any unauthorized copying, disclosure or distribution of the
material in this communication is strictly forbidden.

Deutsche Bank does not render legal or tax advice, and the information
contained in this communication should not be regarded as such.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20131223/3e0b1c2a/attachment.html>


More information about the devel mailing list