]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
update debian_build.py: new jobs with automatic changelog management
authorMathias Klette <mathias.klette@profitbricks.com>
Fri, 19 Apr 2013 17:19:29 +0000 (19:19 +0200)
committerMathias Klette <mathias.klette@profitbricks.com>
Fri, 19 Apr 2013 17:21:27 +0000 (19:21 +0200)
- based on changes in 59739f4 by Thilo Fromm - thanks!

debian_build.py

index cd589831ecfa75b3cfedcde8b1db5a6365dcf2bd..ef08c4957007c78d80e065ea7967448ac1403834 100755 (executable)
@@ -103,6 +103,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
@@ -301,7 +308,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']