]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
fix hotfix handling
authorHolger Levsen <holger@layer-acht.org>
Wed, 15 Feb 2012 15:26:44 +0000 (16:26 +0100)
committerHolger Levsen <holger@layer-acht.org>
Wed, 15 Feb 2012 15:26:44 +0000 (16:26 +0100)
debian_build.py

index c7684d4b70ac1eca3a9333bfe9f7a42f23ad2fca..5a9d7fb8456d951135e32dc4aef0a6eb2c45dcba 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])