)
exit_error()
- if options.distribution in ('testing', 'staging', 'unstable', 'pre-staging','experimental'):
+ if options.distribution in ('testing', 'staging', 'unstable', 'pre-staging','experimental') or GIT_BRANCH_NAME.startswith('release') or GIT_BRANCH_NAME.startswith('hotfix'):
daily_date = datetime.datetime.now().strftime('%Y%m%d%H%M%S')
if GIT_BRANCH_NAME.startswith('release') or GIT_BRANCH_NAME.startswith('hotfix'):
version = '%s~rc%s' %(version, daily_date)
+ elif options.distribution.startswith('feature') or options.distribution == 'experimental':
+ version = '%s~alpha%s' %(version, daily_date)
else:
version = '%s~develop%s' %(version, daily_date)