From: Mathias Klette Date: Fri, 19 Apr 2013 17:19:29 +0000 (+0200) Subject: update debian_build.py: new jobs with automatic changelog management X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=e94daaf6032faa85a7e35c7f004f650e55d131ab;p=profitbricks%2Fjenkins-build-scripts.git update debian_build.py: new jobs with automatic changelog management - based on changes in 59739f4 by Thilo Fromm - thanks! --- 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']