daily_date = datetime.datetime.now().strftime('%Y%m%d%H%M%S')
if options.distribution in ('testing', 'staging'):
- version = '%s~rc%s-1' %(version, daily_date)
+ version = '%s~rc%s' %(version, daily_date)
else:
- version = '%s~develop%s-1' %(version, daily_date)
+ version = '%s~develop%s' %(version, daily_date)
new_log = 'Generated by jenkins build.'
'--force-bad-version',
'--distribution',
'%s' %(options.distribution),
+ '--preserve',
'--',
'%s' %(''.join(new_log))
]