BUILD_START = datetime.datetime.now()
AUTO_CHANGELOG_REPONAMES = (
- 'infrastructure-docs',
'ri-docs',
- 'sl',
'so-docs',
+ 'infrastructure-docs',
+ 'sl',
'storage-docs',
)
STABLE_DISTRIBUTIONS = (
gitrepo.name = gitrepo.remotes['origin']['fetch'].split('/')[-1].strip('.git')
else:
gitrepo.name = gitrepo.remotes.origin.url.split('/')[-1].strip('.git')
+ logger.info('Remotes: %s' % gitrepo.remotes)
+ logger.info('Repository Name: %s' % gitrepo.name)
# .. some local variables
daily_date = BUILD_START.strftime('%Y%m%d%H%M%S')
logger.error('Rebase has failed!\n\n%s\n' % error.stderr, exc_info=error)
logger.debug(gitrepo.git.rebase('--abort'))
logger.debug(gitrepo.git.reset('--hard',src_branch))
+ if os.path.exists('.git/rebase-apply'):
+ subprocess.check_call(['rm','-rf','.git/rebase-apply'])
exit_error()
if 'no-test' in build_triggers:
if do_autoincrement:
logger.info('This is an autoincrementing project.')
try:
- logger.debug(subprocess.check_call([BIN_DCH, '-i', 'Released by enkins.']))
- logger.debug(subprocess.check_call([BIN_GIT_DCH, '-R', '-a', --spawn-editor=none']))
- logger.debug(gitrepo.git.commit('-a', '-s', '-m', 'Released by enkins'))
+ logger.debug(subprocess.check_call([BIN_DCH, '-i', 'Released by jenkins.']))
+ logger.debug(subprocess.check_call([BIN_GIT_DCH, '-R', '-a', '--spawn-editor=none']))
+ logger.debug(gitrepo.git.commit('-a', '-s', '-m', 'Released by jenkins'))
logger.debug(gitrepo.git.push('origin', 'master'))
- logger.info('Changelog autoincremented and pushed back by enkins!')
+ logger.info('Changelog autoincremented and pushed back by Jenkins!')
except Exception as error:
- logger.error('Autoincrement failed. Standard error eturned:\n\n%s\n' % error.stderr, exc_info=error)
+ logger.error('Autoincrement failed. Standard error returned:\n\n%s\n' % error.stderr, exc_info=error)
exit_error()
# .. or set approriate versions for our development candidates
figlet('Build OK')
logger.info('''
-###
+###
### In case you need to analyze the results within chroot, do the following:
### * login to {hostname}
### * become user {jenkins_user}
### * then execute:
-###
+###
cd {jenkins_workspace}
export {gbp_env} FORCE_SHELL=TRUE
hostname=socket.gethostname(),
jenkins_user=ENV['USER'],
jenkins_workspace=ENV['WORKSPACE'],
- gbp_env=' '.join(['{k}="{v}"'.format(k=key, v=gbp.env[key],)
+ gbp_env=' '.join(['{k}="{v}"'.format(k=key, v=gbp.env[key],)
for key in gbp.env.keys()
]),
command=' '.join(gbp.command),