# jenkins environment - parameters
ENV.setdefault('NO_UPLOAD', '')
ENV.setdefault('BUILD_TRIGGERS', '')
+ENV.setdefault('VERSION_SUFFIX', '')
ENV.setdefault('GIT_BRANCH_NAME', ENV['GIT_BRANCH'])
if ENV['GIT_BRANCH'] != ENV['GIT_BRANCH_NAME']:
ENV['GIT_BRANCH'] = ENV['GIT_BRANCH_NAME']
parser.add_option(
'--version-suffix',
dest='version_suffix',
- default='',
+ default=ENV['VERSION_SUFFIX'],
help='Add the specified suffix to the Debian version. Default is none.'
)
))
exit_error()
new_dist = 'unstable'
- new_version = '{version}~develop{date}+{build}+{commit}'.format(
+ new_version = '{version}~develop{date}+{build}+{commit}{suffix}'.format(
version=curr_version,
date=daily_date,
build=ENV['BUILD_NUMBER'],