if options.distribution in ('testing', 'staging', 'unstable', 'pre-staging','experimental'):
daily_date = datetime.datetime.now().strftime('%Y%m%d%H%M%S')
- if options.distribution in ('testing', 'staging'):
+ if GIT_BRANCH_NAME.startswith('release') or GIT_BRANCH_NAME.startswith('hotfix'):
version = '%s~rc%s' %(version, daily_date)
else:
version = '%s~develop%s' %(version, daily_date)
pb_suite='experimental'
elif options.distribution in ('unstable' , 'pre-staging'):
pb_suite='pre-staging'
- elif options.distribution in ('testing', 'staging'):
- pb_suite='staging'
- elif options.distribution in ('stable', 'stable-proposed-updates', 'production', 'production-proposed-updates'):
+ elif GIT_BRANCH_NAME.startswith('release') or 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(