From e94daaf6032faa85a7e35c7f004f650e55d131ab Mon Sep 17 00:00:00 2001 From: Mathias Klette Date: Fri, 19 Apr 2013 19:19:29 +0200 Subject: [PATCH] update debian_build.py: new jobs with automatic changelog management - based on changes in 59739f4 by Thilo Fromm - thanks! --- debian_build.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/debian_build.py b/debian_build.py index 240cd50..9dc17dd 100755 --- a/debian_build.py +++ b/debian_build.py @@ -95,6 +95,13 @@ DPUT_CF = os.path.join(CWD, '..', 'dput.cf') NO_UPLOAD = os.environ.get('NO_UPLOAD') +AUTO_CHANGELOG_JOBS = ( + 'ri-docs', + 'so-docs', + 'infrastructure-docs', + 'storage-docs', + ) + class HudsonUrl(urllib.FancyURLopener): pass @@ -293,7 +300,7 @@ if __name__ == '__main__': 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'] -- 2.39.5