dst_branch = 'integration' # define the new branch
local_branch = dst_branch # reset env for git-buildpackage
# FIXME: error handling when rebase doesn't cleanly complete?
- gitrepo.git.rebase(dst_branch)
+ gitrepo.git.rebase('origin/' + dst_branch)
gitrepo.git.checkout(dst_branch)
+ gitrepo.git.pull()
gitrepo.git.merge(src_branch)
logger.info('Checked out "{dst_branch}" branch after rebase and merge completed from branch "{src_branch}".'.format(
dst_branch=dst_branch,
src_branch=src_branch,
))
- # if this rebased/merged branch builds successful, push changes to
- # integration branch and let this branch rebuild and finally tag the
- # commit
- do_push = True
if 'no-test' in commit_triggers:
# debian/rules from vdc-bundles determines maven options for tests
except:
pass
- # .. push the auto-merged branch into integration:
- if do_push:
- try:
- gitrepo.git.push('origin', 'integration:integration')
- logger.info('Check "integration-*"-job for the follow-up build.')
- figlet('Push OK')
- except Exception as error:
- logger.error('Could not push to "integration": ', exc_info=error)
- figlet('Push failed')
- exit_error()
-
# .. let's tag
if not do_tagging:
figlet('Tagging skipped')