Enable commit processing for branches other than master
* Change config to allow to specify branch name for release * Process all branches specified in config, not only master TBD: update of default data and its schema Partially fixes bug 1239816 Change-Id: I960a493b833414148befc5d6339df30706ffa38b
This commit is contained in:
@@ -92,7 +92,12 @@ def process_repo(repo, runtime_storage_inst, record_processor_inst):
|
||||
rcs_inst.setup(key_filename=cfg.CONF.ssh_key_filename,
|
||||
username=cfg.CONF.ssh_username)
|
||||
|
||||
for branch in repo['branches']:
|
||||
branches = set(['master'])
|
||||
for release in repo.get('releases'):
|
||||
if 'branch' in release:
|
||||
branches.add(release['branch'])
|
||||
|
||||
for branch in branches:
|
||||
LOG.debug('Processing repo %s, branch %s', uri, branch)
|
||||
|
||||
vcs_key = 'vcs:' + str(urllib.quote_plus(uri) + ':' + branch)
|
||||
|
||||
Reference in New Issue
Block a user