]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
hotfix builds should not modify debian/changelog and should go to p-p-u. release...
authorHolger Levsen <holger@layer-acht.org>
Tue, 14 Feb 2012 16:01:49 +0000 (17:01 +0100)
committerHolger Levsen <holger@layer-acht.org>
Tue, 14 Feb 2012 16:01:49 +0000 (17:01 +0100)
debian_build.py

index 0a6c11f45e40390f359bbcec04656ca9b6073c4f..dbe9ebe34d8a1dbe65d0e8fddec6d1bfb5df49fa 100755 (executable)
@@ -349,12 +349,12 @@ if __name__ == '__main__':
 
     DPUT_OPTIONS = DPUT_OPTIONS_DEFAULT
 
-    if options.distribution in ('testing', 'staging', 'unstable', 'pre-staging','experimental') or GIT_BRANCH_NAME.startswith('release/') or GIT_BRANCH_NAME.startswith('hotfix/'):
+    if options.distribution in ('testing', 'staging', 'unstable', 'pre-staging','experimental') or GIT_BRANCH_NAME.startswith('release/'):
         daily_date = datetime.datetime.now().strftime('%Y%m%d%H%M%S')
 
        current_commit = git_helper.git_get_commit_id()
 
-        if GIT_BRANCH_NAME.startswith('release/') or GIT_BRANCH_NAME.startswith('hotfix/'):
+        if GIT_BRANCH_NAME.startswith('release/'):
             version = '%s~rc%s+%s+%s' %(version, daily_date, BUILD_NUMBER, current_commit[0:7])
         elif GIT_BRANCH_NAME.startswith('feature/') or GIT_BRANCH_NAME.startswith('poc/') or GIT_BRANCH_NAME.startswith('bugfix/')  or options.distribution == 'experimental':
             version = '%s~experimental%s+%s+%s' %(version, daily_date, BUILD_NUMBER, current_commit[0:7])
@@ -420,9 +420,9 @@ if __name__ == '__main__':
 
     if options.distribution in ('experimental'):
       pb_suite='experimental'
-    elif options.distribution in ('unstable' , 'pre-staging'):
+    elif options.distribution in ('unstable' , 'pre-staging') or GIT_BRANCH_NAME.startswith('release/'):
       pb_suite='pre-staging'
-    elif GIT_BRANCH_NAME.startswith('release/') or GIT_BRANCH_NAME.startswith('hotfix/') or options.distribution in ('stable', 'stable-proposed-updates', 'production', 'production-proposed-updates'):
+    elif GIT_BRANCH_NAME.startswith('hotfix/') or options.distribution in ('stable', 'stable-proposed-updates', 'production', 'production-proposed-updates'):
       pb_suite='production-proposed-updates'
        
     gbp = git_buildpackage.GitBuildPackage(