NO_UPLOAD = os.environ.get('NO_UPLOAD')
+AUTO_CHANGELOG_JOBS = (
+ 'ri-docs',
+ 'so-docs',
+ 'infrastructure-docs',
+ 'storage-docs',
+ )
+
class HudsonUrl(urllib.FancyURLopener):
pass
else:
logger.debug('Status is now:\n%s' %( gitcmd.status().strip() ))
- if (BUILD_JOBNAME == 'ri-docs' or BUILD_JOBNAME == 'so-docs') and GIT_BRANCH_NAME == 'master':
+ if GIT_BRANCH_NAME == 'master' and BUILD_JOBNAME in AUTO_CHANGELOG_JOBS:
cmd = ['/usr/bin/dch', '-i', 'Released by jenkins.']
subprocess.check_call(cmd)
cmd = ['/usr/bin/git-dch', '-R', '-a', '--spawn-editor=none']