From: Holger Levsen Date: Fri, 13 Apr 2012 11:06:13 +0000 (+0200) Subject: add support for building pre-staging branches (commented out) and simplify code a bit X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=ccd242b6f828ce8d12277770c4f12aa610afa7c5;p=profitbricks%2Fjenkins-build-scripts.git add support for building pre-staging branches (commented out) and simplify code a bit --- diff --git a/debian_build.py b/debian_build.py index ef4a65f..d797bbc 100755 --- a/debian_build.py +++ b/debian_build.py @@ -353,18 +353,19 @@ if __name__ == '__main__': # these uploads should go to a different repo: DPUT_OPTIONS = DPUT_OPTIONS_DEV else: - if GIT_REPO_PATH.startswith('/srv/git/dev/'): - if GIT_BRANCH_NAME == 'pre-staging': - version = '%s~develop%s+%s+%s' %(version, daily_date, BUILD_NUMBER, current_commit[0:7]) - changelog_distro = 'pre-staging' - else: - # use shorter date because we can - daily_date = datetime.datetime.now().strftime('%Y%m%d') - version = '%s~alpha%s+%s+%s' %(version, daily_date, BUILD_NUMBER, current_commit[0:7]) - changelog_distro = 'unstable' - else: - version = '%s~develop%s+%s+%s' %(version, daily_date, BUILD_NUMBER, current_commit[0:7]) - changelog_distro = 'pre-staging' + #FIXME: enable this once Florian acks. + #if GIT_REPO_PATH.startswith('/srv/git/dev/'): + # if GIT_BRANCH_NAME == 'pre-staging': + # version = '%s~develop%s+%s+%s' %(version, daily_date, BUILD_NUMBER, current_commit[0:7]) + # changelog_distro = 'pre-staging' + # else: + # # use shorter date because we can + # daily_date = datetime.datetime.now().strftime('%Y%m%d') + # version = '%s~alpha%s+%s+%s' %(version, daily_date, BUILD_NUMBER, current_commit[0:7]) + # changelog_distro = 'unstable' + #else: + version = '%s~develop%s+%s+%s' %(version, daily_date, BUILD_NUMBER, current_commit[0:7]) + changelog_distro = 'pre-staging' new_log = 'Generated by jenkins build of %s' % current_commit